fix: properly handle dynamic pool with zero minimum size
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 20:19:24 +0000 (21:19 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 20:19:24 +0000 (21:19 +0100)
commite44639e9af74427b71f1556ff7ec9f7606373e0d
tree7191dd4c631f9c9369564061eff1aa32ca41b649
parentce63d9e2f3d895bd2ae5aafc40769ff4dda3c887
fix: properly handle dynamic pool with zero minimum size

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
15 files changed:
.c8rc.json
CHANGELOG.md
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/pools/thread/dynamic.ts
tests/pools/abstract-pool.test.mjs
tests/pools/cluster/dynamic.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs
tests/pools/thread/dynamic.test.mjs