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 Jan 18, 2022
1 parent 0d8e9d3 commit 4f9bf19
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 @@ -80,8 +80,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{WithInsecure()}, nil
}

Expand Down

0 comments on commit 4f9bf19

Please sign in to comment.