mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 11:21:17 -05:00
go/libraries/doltcore/env: environment.go: Do not attach nil PerRPCCredentials when getting credentails from environment.
This commit is contained in:
+3
-1
@@ -653,7 +653,9 @@ func (dEnv *DoltEnv) GetGRPCDialParams(config grpcendpoint.Config) (string, []gr
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
opts = append(opts, grpc.WithPerRPCCredentials(rpcCreds))
|
||||
if rpcCreds != nil {
|
||||
opts = append(opts, grpc.WithPerRPCCredentials(rpcCreds))
|
||||
}
|
||||
}
|
||||
|
||||
return endpoint, opts, nil
|
||||
|
||||
Reference in New Issue
Block a user