refactor: remove unneeded worker choice strategy storage in intermediate
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 13:35:46 +0000 (14:35 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 13:35:46 +0000 (14:35 +0100)
commit39618ede0e08d380c1ac82005bcc2ab1f3c227b6
treedcc8dbfda42cbc0233c51bd2f72344f98f2fc62b
parenta470bbcf628a548eb345104761dbc9e7d7792809
refactor: remove unneeded worker choice strategy storage in intermediate
object

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
17 files changed:
src/index.ts
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-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/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/utils.ts
tests/pools/abstract-pool.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs
tests/utils.test.mjs