refactor: factor out common code in worker choice strategies
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 31 May 2023 19:18:18 +0000 (21:18 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 31 May 2023 19:18:18 +0000 (21:18 +0200)
commit0bbf65c3768b86f989056de36de0199d6e35562a
tree09f429551f441f48475ad3741bc42e8d4e93edf4
parent8c3ec188d4623aed43f2834325fb324d8fde1122
refactor: factor out common code in worker choice strategies

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts