From dd6b930e097e0479de06ee078641985c30a5538f Mon Sep 17 00:00:00 2001 From: yangzhouhan Date: Fri, 14 Aug 2015 17:18:12 -0700 Subject: [PATCH] minor change --- interop/client/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interop/client/client.go b/interop/client/client.go index e17df4f2..07014802 100644 --- a/interop/client/client.go +++ b/interop/client/client.go @@ -520,8 +520,7 @@ func main() { } opts = append(opts, grpc.WithPerRPCCredentials(jwtCreds)) } else if *testCase == "oauth2_token_creds" { - token := getToken() - opts = append(opts, grpc.WithPerRPCCredentials(oauth.NewOauthAccess(token))) + opts = append(opts, grpc.WithPerRPCCredentials(oauth.NewOauthAccess(getToken()))) } } conn, err := grpc.Dial(serverAddr, opts...)