alitto / pond

🔘 Minimalistic and High-performance goroutine worker pool written in Go
MIT License
1.43k stars 60 forks source link

IdleWorkers RunningWorkers #46

Closed mylxy closed 1 year ago

mylxy commented 1 year ago

why is it always the same,why? image

alitto commented 1 year ago

Hey @mylxy! could you provide more context about this issue? I can't read chinese so it would be great if you can translate the image you posted. Also, please provide the fragment of code where you are using pond. Thanks!

mylxy commented 1 year ago

The number of idle and running threads is always the same, is it a bug?

mylxy commented 1 year ago

There is no problem with the local test, but the prometheus gaugeFunc call is the same as the display, I am also drunk, I will check it myself