Merge pull request #12707 from viviyww/new

mvcc: optimize watch logic of watchableStore
This commit is contained in:
Piotr Tabor
2021-02-22 19:45:55 +01:00
committed by GitHub

View File

@@ -131,8 +131,6 @@ func (s *watchableStore) watch(key, end []byte, startRev int64, id WatchID, ch c
if startRev > wa.minRev {
wa.minRev = startRev
}
}
if synced {
s.synced.add(wa)
} else {
slowWatcherGauge.Inc()