From 41683155e05593f298202ded1d2cdd3784c25b27 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 15 Dec 2023 18:07:53 -0500 Subject: [PATCH] ticker leak --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a0e19b4..b3daa68 100644 --- a/main.go +++ b/main.go @@ -151,8 +151,8 @@ func (watch *Watch) server() http.Handler { } func (watch *Watch) run(ctx context.Context) error { + ticker := time.NewTicker(5 * time.Second) for { - ticker := time.NewTicker(5 * time.Second) select { case <-ticker.C: for i, v := range watch.Tildes {