Merge pull request #11921 from tedyu/client-watch-lock

clientv3: use Mutex for watcher lock
release-3.5
Gyuho Lee 2020-05-20 14:56:23 -07:00 committed by GitHub
commit f8ee908330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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