From 52a9b9d96ce72244096b2258f4fe909c1cac9653 Mon Sep 17 00:00:00 2001 From: Mofi Rahman Date: Fri, 24 Nov 2023 20:57:40 +0000 Subject: [PATCH] add initialization for epMu in contetx client fixes #17001 Signed-off-by: Mofi Rahman --- client/v3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/v3/client.go b/client/v3/client.go index 2d415f10c..16fbb5de2 100644 --- a/client/v3/client.go +++ b/client/v3/client.go @@ -91,7 +91,7 @@ func New(cfg Config) (*Client, error) { // service interface implementations and do not need connection management. func NewCtxClient(ctx context.Context, opts ...Option) *Client { cctx, cancel := context.WithCancel(ctx) - c := &Client{ctx: cctx, cancel: cancel, lgMu: new(sync.RWMutex)} + c := &Client{ctx: cctx, cancel: cancel, lgMu: new(sync.RWMutex), epMu: new(sync.RWMutex)} for _, opt := range opts { opt(c) }