Optimise start-up and shut-down

This commit is contained in:
Fred Boniface
2024-04-14 20:00:34 +01:00
parent 91fd38104c
commit 992005cc97
4 changed files with 51 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ func InitTicker(cfg *helpers.Configuration, stop <-chan struct{}) {
// Runs the ticker and handles tick events
func runTicker(cfg *helpers.Configuration, stop <-chan struct{}) {
log.Info("Starting background ticker", zap.Duration("frequency", frequency))
log.Info("Starting background task ticker", zap.Duration("frequency", frequency))
ticker := time.NewTicker(frequency)
defer ticker.Stop()