chg(balancer): work() function instance identification.
authorsgf <sgf.dma@gmail.com>
Wed, 26 Oct 2022 18:19:16 +0000 (21:19 +0300)
committersgf <sgf.dma@gmail.com>
Wed, 26 Oct 2022 18:19:16 +0000 (21:19 +0300)
commitd5394c935ab878013c8c53298e365e4fddadbe48
tree1c6a64451b3eaaaa00d98b0deb6cce63bf3f8667
parentc35bf7ed5b9072e79fef78eb0ad223e0c28c8478
chg(balancer): work() function instance identification.

This shows bug in existing (my) code: dispatch() starts new worker
(w.work()) for every call, resulting in many workers, instead of one per
'Worker' structure in a Pool.
concurrency-is-not-parallelism/balancer.go