Skip to content

Commit

Permalink
Merge pull request #11921 from tedyu/client-watch-lock
Browse files Browse the repository at this point in the history
clientv3: use Mutex for watcher lock
  • Loading branch information
gyuho authored May 20, 2020
2 parents 5f9bb45 + 35d0262 commit f8ee908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientv3/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ type watcher struct {
callOpts []grpc.CallOption

// mu protects the grpc streams map
mu sync.RWMutex
mu sync.Mutex

// streams holds all the active grpc streams keyed by ctx value.
streams map[string]*watchGrpcStream
Expand Down

0 comments on commit f8ee908

Please sign in to comment.