@@ -294,7 +294,7 @@ func (c *ResourceGroupsController) Start(ctx context.Context) {
294
294
log .Warn ("watch resource group meta failed" , zap .Error (err ))
295
295
timerutil .SafeResetTimer (watchRetryTimer , watchRetryInterval )
296
296
failpoint .Inject ("watchStreamError" , func () {
297
- watchRetryTimer . Reset ( 20 * time .Millisecond )
297
+ timerutil . SafeResetTimer ( watchRetryTimer , 20 * time .Millisecond )
298
298
})
299
299
}
300
300
}
@@ -338,7 +338,7 @@ func (c *ResourceGroupsController) Start(ctx context.Context) {
338
338
watchMetaChannel = nil
339
339
timerutil .SafeResetTimer (watchRetryTimer , watchRetryInterval )
340
340
failpoint .Inject ("watchStreamError" , func () {
341
- watchRetryTimer . Reset ( 20 * time .Millisecond )
341
+ timerutil . SafeResetTimer ( watchRetryTimer , 20 * time .Millisecond )
342
342
})
343
343
continue
344
344
}
@@ -374,7 +374,7 @@ func (c *ResourceGroupsController) Start(ctx context.Context) {
374
374
watchConfigChannel = nil
375
375
timerutil .SafeResetTimer (watchRetryTimer , watchRetryInterval )
376
376
failpoint .Inject ("watchStreamError" , func () {
377
- watchRetryTimer . Reset ( 20 * time .Millisecond )
377
+ timerutil . SafeResetTimer ( watchRetryTimer , 20 * time .Millisecond )
378
378
})
379
379
continue
380
380
}
@@ -527,7 +527,7 @@ func (c *ResourceGroupsController) sendTokenBucketRequests(ctx context.Context,
527
527
ClientUniqueId : c .clientUniqueID ,
528
528
}
529
529
if c .ruConfig .DegradedModeWaitDuration > 0 && c .responseDeadlineCh == nil {
530
- c .run .responseDeadline . Reset ( c .ruConfig .DegradedModeWaitDuration )
530
+ timerutil . SafeResetTimer ( c .run .responseDeadline , c .ruConfig .DegradedModeWaitDuration )
531
531
c .responseDeadlineCh = c .run .responseDeadline .C
532
532
}
533
533
go func () {
0 commit comments