mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v3rpc: don't elide next progress notification on progress notification
Fixes #5878
This commit is contained in:
parent
846883a979
commit
a4e79d7ebf
@ -268,7 +268,8 @@ func (sws *serverWatchStream) sendLoop() {
|
||||
}
|
||||
|
||||
sws.mu.Lock()
|
||||
if _, ok := sws.progress[wresp.WatchID]; ok {
|
||||
if len(evs) > 0 && sws.progress[wresp.WatchID] {
|
||||
// elide next progress update if sent a key update
|
||||
sws.progress[wresp.WatchID] = false
|
||||
}
|
||||
sws.mu.Unlock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user