mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10866 from lzhfromustc/master
clientv3: Fixed a missing block bug
This commit is contained in:
commit
ecba4492f2
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user