Merge pull request #11921 from tedyu/client-watch-lock
clientv3: use Mutex for watcher lockrelease-3.5
commit
f8ee908330
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue