From e45357097f0bd2db791f30d45d42919054c86d0c Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Thu, 7 Jul 2022 05:10:22 +0200 Subject: [PATCH] cleanup v5 --- go/logic/throttler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/logic/throttler.go b/go/logic/throttler.go index b7739f8..849f40f 100644 --- a/go/logic/throttler.go +++ b/go/logic/throttler.go @@ -252,8 +252,7 @@ func (this *Throttler) collectControlReplicasLag() { ticker := time.NewTicker(100 * time.Millisecond) defer ticker.Stop() - for { - <-ticker.C + for range ticker.C { if atomic.LoadInt64(&this.finishedMigrating) > 0 { return }