cleanup v3
This commit is contained in:
parent
0303031fc2
commit
c3593c94ff
@ -448,10 +448,10 @@ func (this *Throttler) initiateThrottlerCollection(firstThrottlingCollected chan
|
||||
this.collectGeneralThrottleMetrics()
|
||||
firstThrottlingCollected <- true
|
||||
|
||||
throttlerMetricsTick := time.NewTicker(time.Second)
|
||||
defer throttlerMetricsTick.Stop()
|
||||
ticker := time.NewTicker(time.Second)
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
<-throttlerMetricsTick.C
|
||||
<-ticker.C
|
||||
if atomic.LoadInt64(&this.finishedMigrating) > 0 {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user