From f447bf104a4eff069b6019db406c31dd54d7b3ef Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Fri, 26 Jul 2019 16:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9DFix=20the=20type=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pool_func.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool_func.go b/pool_func.go index eafe81b..6513733 100644 --- a/pool_func.go +++ b/pool_func.go @@ -71,7 +71,7 @@ func (p *PoolWithFunc) periodicallyPurge() { heartbeat := time.NewTicker(p.expiryDuration) defer heartbeat.Stop() - var expiredWorkers []*Worker + var expiredWorkers []*WorkerWithFunc for range heartbeat.C { if CLOSED == atomic.LoadInt32(&p.release) { break