ticker leak

This commit is contained in:
stryan 2023-12-15 18:07:53 -05:00
parent 98542afd24
commit 41683155e0
1 changed files with 1 additions and 1 deletions

View File

@ -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 {