mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-18 03:01:01 +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)
|
heartbeat := time.NewTicker(p.expiryDuration)
|
||||||
defer heartbeat.Stop()
|
defer heartbeat.Stop()
|
||||||
|
|
||||||
var expiredWorkers []*Worker
|
var expiredWorkers []*WorkerWithFunc
|
||||||
for range heartbeat.C {
|
for range heartbeat.C {
|
||||||
if CLOSED == atomic.LoadInt32(&p.release) {
|
if CLOSED == atomic.LoadInt32(&p.release) {
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user