Browse Source

Merge pull request #10866 from lzhfromustc/master

clientv3: Fixed a missing block bug
Xiang Li 6 years ago
parent
commit
ecba4492f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      clientv3/watch.go

+ 1 - 0
clientv3/watch.go

@@ -384,6 +384,7 @@ func (w *watcher) RequestProgress(ctx context.Context) (err error) {
 
 	w.mu.Lock()
 	if w.streams == nil {
+		w.mu.Unlock()
 		return fmt.Errorf("no stream found for context")
 	}
 	wgs := w.streams[ctxKey]