From 4f9bf19464b3941bde0e882d0f4a771b2e0c1401 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 18 Jan 2022 09:50:05 +0100 Subject: [PATCH] tls.GetGRPCDialOptions: Rename argument to tlsEnabled Signed-off-by: Arve Knudsen --- crypto/tls/tls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/tls/tls.go b/crypto/tls/tls.go index 3986d7255..7c922a2f2 100644 --- a/crypto/tls/tls.go +++ b/crypto/tls/tls.go @@ -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 }