From 1124172331911b841d82a69050469146703066d5 Mon Sep 17 00:00:00 2001 From: serr Date: Thu, 12 Jun 2025 00:32:55 +0300 Subject: [PATCH] some small changes --- tools/ticker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ticker.go b/tools/ticker.go index 7722a8a..f9b9014 100644 --- a/tools/ticker.go +++ b/tools/ticker.go @@ -10,8 +10,8 @@ func Ticker(fn func(), interval time.Duration) chan struct{} { } ticker := time.NewTicker(interval) stopChan := make(chan struct{}) - fn() go func() { + fn() for { select { case <-ticker.C: