From 60db29567b4b2aa9f1ab6362060ee8057601abe4 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Wed, 13 Mar 2024 10:13:59 +0100 Subject: [PATCH] Increase sync watchers period to 1 second --- server/storage/mvcc/watchable_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/storage/mvcc/watchable_store.go b/server/storage/mvcc/watchable_store.go index ae5c551fdfe6..f2b6b4acfe79 100644 --- a/server/storage/mvcc/watchable_store.go +++ b/server/storage/mvcc/watchable_store.go @@ -213,7 +213,7 @@ func (s *watchableStore) Restore(b backend.Backend) error { func (s *watchableStore) syncWatchersLoop() { defer s.wg.Done() - waitDuration := 100 * time.Millisecond + waitDuration := time.Second delayTicker := time.NewTicker(waitDuration) defer delayTicker.Stop()