Skip to content

Commit

Permalink
Merge pull request #17018 from moficodes/patch-01
Browse files Browse the repository at this point in the history
add initialization for epMu in contetx client
  • Loading branch information
serathius authored Nov 25, 2023
2 parents e659582 + 52a9b9d commit ce0a737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/v3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ce0a737

Please sign in to comment.