From 18746c65da795910a8ccfdd1f55eb34f4fa9d53b Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Fri, 15 Dec 2017 14:31:27 +0530 Subject: [PATCH] Clientv3: Fix govet error for gotip --- clientv3/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientv3/client.go b/clientv3/client.go index bc695748a..3be897647 100644 --- a/clientv3/client.go +++ b/clientv3/client.go @@ -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