From e0c9624e2a4298357f4072914642072fe735dade Mon Sep 17 00:00:00 2001 From: sandy_mac Date: Fri, 10 Nov 2023 20:21:13 +0800 Subject: [PATCH] t has already send to the chan in NewTimer(),add twice athough it won't go wrong --- timer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/timer.go b/timer.go index fce9e7aa..c4ec333e 100644 --- a/timer.go +++ b/timer.go @@ -51,8 +51,6 @@ func NewCountTimer(interval time.Duration, count int, fn timer.Func) *timer.Time } t := timer.NewTimer(fn, interval, count) - // add to manager - timer.Manager.ChCreatedTimer <- t return t }