Skip to content

Commit

Permalink
tls.GetGRPCDialOptions: Rename argument to tlsEnabled
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed May 26, 2023
1 parent d6a678e commit ad31150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ var WithInsecure = func() grpc.DialOption {
}

// GetGRPCDialOptions creates GRPC DialOptions for TLS.
func (cfg *ClientConfig) GetGRPCDialOptions(enabled bool) ([]grpc.DialOption, error) {
if !enabled {
func (cfg *ClientConfig) GetGRPCDialOptions(tlsEnabled bool) ([]grpc.DialOption, error) {
if !tlsEnabled {
return []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}, nil
}

Expand Down

0 comments on commit ad31150

Please sign in to comment.