mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
📝Fix the type error
This commit is contained in:
parent
9eb91a4ae0
commit
f447bf104a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user