refactor: conditionally reset strategy internals
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Apr 2023 17:36:58 +0000 (19:36 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Apr 2023 17:36:58 +0000 (19:36 +0200)
commitb2b1d84ebeb8299fda9b6090c9951e953749bbe0
tree3dbe2c85e086a8ebb864e390385e2651b0a6df29
parent02b9f29b9b6fafd5e811dfbce4a7e0d65caf5123
refactor: conditionally reset strategy internals

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts
src/pools/selection-strategies/less-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-utils.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
tests/pools/selection-strategies/worker-choice-strategy-context.test.js