Skip to content

Commit

Permalink
Merge pull request #17699 from henrybear327/backport-3.5/add-initiali…
Browse files Browse the repository at this point in the history
…zation-for–epMu-in-contetx-client

Backport initialization of mu in NewCtxClient to release-3.5
  • Loading branch information
ahrtr authored Apr 4, 2024
2 parents cbd0aed + 61a85b7 commit 130cfe9
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 @@ -86,7 +86,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), mu: new(sync.RWMutex)}
for _, opt := range opts {
opt(c)
}
Expand Down

0 comments on commit 130cfe9

Please sign in to comment.