Debug worker

This commit is contained in:
Gregory Wells
2026-03-24 18:38:47 -04:00
parent ffb9600089
commit d4512e9cce
3 changed files with 11 additions and 9 deletions

View File

@@ -2,9 +2,12 @@ package main
import (
"time"
"astraltech.xyz/accountmanager/src/logging"
)
func createWorker(interval time.Duration, task func()) {
logging.Debugf("Creating worker that runs on a %s interval", interval.String())
go func() {
ticker := time.NewTicker(interval)
defer ticker.Stop()