Clientv3: Fix govet error for gotip

This commit is contained in:
Manjunath A Kumatagi 2017-12-15 14:31:27 +05:30
parent 014c375099
commit 18746c65da

View File

@ -56,7 +56,7 @@ type Client struct {
cfg Config
creds *credentials.TransportCredentials
balancer *healthBalancer
mu sync.Mutex
mu *sync.Mutex
ctx context.Context
cancel context.CancelFunc
@ -385,6 +385,7 @@ func newClient(cfg *Config) (*Client, error) {
creds: creds,
ctx: ctx,
cancel: cancel,
mu: new(sync.Mutex),
}
if cfg.Username != "" && cfg.Password != "" {
client.Username = cfg.Username