Skip to content

Commit

Permalink
[gce_call_creds_default] c2
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Oct 1, 2021
1 parent 4758eea commit 4c995fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions credentials/google/google.go
Expand Up @@ -37,7 +37,7 @@ var logger = grpclog.Component("credentials")

// DefaultCredentialsOptions constructs options to build DefaultCredentials.
type DefaultCredentialsOptions struct {
// PerRPCCreds is a per RPC credentials that is passed to a bundle.
// PerRPCCreds is a per RPC credentials that is passed to a bundle.
PerRPCCreds credentials.PerRPCCredentials
}

Expand All @@ -53,7 +53,7 @@ func NewDefaultCredentialsWithOptions(opts DefaultCredentialsOptions) credential
var err error
perRPC, err = oauth.NewApplicationDefault(ctx)
if err != nil {
logger.Warningf("google default creds: failed to create application oauth: %v", err)
logger.Warningf("NewDefaultCredentialsWithOptions: failed to create application oauth: %v", err)
}
}
c := &creds{
Expand All @@ -63,7 +63,7 @@ func NewDefaultCredentialsWithOptions(opts DefaultCredentialsOptions) credential
}
bundle, err := c.NewWithMode(internal.CredsBundleModeFallback)
if err != nil {
logger.Warningf("google default creds with per rpc: failed to create new creds: %v", err)
logger.Warningf("NewDefaultCredentialsWithOptions: failed to create new creds: %v", err)
}
return bundle
}
Expand Down

0 comments on commit 4c995fe

Please sign in to comment.