Skip to content

Commit

Permalink
Fix bad conflict resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jan 24, 2024
1 parent 33a252a commit c236d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/vt/grpcclient/client_auth_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ func loadStaticAuthCredsFromFile(credsFile string) (*StaticAuthClientCreds, erro

// AppendStaticAuth optionally appends static auth credentials if provided.
func AppendStaticAuth(opts []grpc.DialOption) ([]grpc.DialOption, error) {
if credsFile == "" {
if *credsFile == "" {
return opts, nil
}
var err error
credsFileOnce.Do(func() {
clientCreds, err = loadStaticAuthCredsFromFile(credsFile)
clientCreds, err = loadStaticAuthCredsFromFile(*credsFile)
})
if err != nil {
return nil, err
}
creds := grpc.WithPerRPCCredentials(*clientCreds)
creds := grpc.WithPerRPCCredentials(clientCreds)
opts = append(opts, creds)
return opts, nil
}
Expand Down

0 comments on commit c236d3d

Please sign in to comment.