Merge pull request #10866 from lzhfromustc/master

clientv3: Fixed a missing block bug
This commit is contained in:
Xiang Li 2019-06-28 11:54:50 -07:00 committed by GitHub
commit ecba4492f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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