issues
search
devchat-ai
/
gopool
GoPool is a high-performance, feature-rich, and easy-to-use worker pool library for Golang.
MIT License
187
stars
26
forks
source link
Fix worker count logic in adjustWorkers function
#9
Closed
daniel-hutao
closed
1 year ago
daniel-hutao
commented
1 year ago
Replaced instances of len(p.workerStack) with len(p.workers) in adjustWorkers function to correctly reflect the number of workers.
This change ensures that the worker count is adjusted based on the actual number of workers, not the number of idle workers.