cleanup v2
This commit is contained in:
parent
0ec555badf
commit
0303031fc2
@ -811,7 +811,7 @@ func (this *Migrator) initiateInspector() (err error) {
|
||||
// initiateStatus sets and activates the printStatus() ticker
|
||||
func (this *Migrator) initiateStatus() {
|
||||
this.printStatus(ForcePrintStatusAndHintRule)
|
||||
ticker := time.NewTicker(1 * time.Second)
|
||||
ticker := time.NewTicker(time.Second)
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
<-ticker.C
|
||||
@ -1052,7 +1052,7 @@ func (this *Migrator) initiateStreaming() error {
|
||||
}()
|
||||
|
||||
go func() {
|
||||
ticker := time.NewTicker(1 * time.Second)
|
||||
ticker := time.NewTicker(time.Second)
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
<-ticker.C
|
||||
|
@ -448,7 +448,7 @@ func (this *Throttler) initiateThrottlerCollection(firstThrottlingCollected chan
|
||||
this.collectGeneralThrottleMetrics()
|
||||
firstThrottlingCollected <- true
|
||||
|
||||
throttlerMetricsTick := time.NewTicker(1 * time.Second)
|
||||
throttlerMetricsTick := time.NewTicker(time.Second)
|
||||
defer throttlerMetricsTick.Stop()
|
||||
for {
|
||||
<-throttlerMetricsTick.C
|
||||
|
Loading…
Reference in New Issue
Block a user