[VOL-4756] Cleanup TODO context
Change-Id: I21d5ec8cc015154bc893e54c652d31562d8da5d9
diff --git a/internal/pkg/application/timer.go b/internal/pkg/application/timer.go
index 1a80cb5..aa156a8 100644
--- a/internal/pkg/application/timer.go
+++ b/internal/pkg/application/timer.go
@@ -16,6 +16,7 @@
package application
import (
+ "context"
"time"
)
@@ -40,7 +41,7 @@
}
// Start to start timer
-func (va *VoltApplication) Start(cfg TimerCfg, timerType TimerType) {
+func (va *VoltApplication) Start(cntx context.Context, cfg TimerCfg, timerType TimerType) {
if timerMap[timerType] {
logger.Warn(ctx, "Duplicate Timer!!! Timer already running")
return
@@ -54,7 +55,7 @@
case tickTimer:
va.Tick()
case pendingPoolTimer:
- va.removeExpiredGroups()
+ va.removeExpiredGroups(cntx)
}
case <- timerChannels[timerType]:
return