From: Jérôme Benoit Date: Wed, 20 Dec 2023 12:06:03 +0000 (+0100) Subject: refactor: cleanup IWRR init X-Git-Tag: v3.1.7~1^2~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=050477bd31dced0d2def304e1296dd3ba3ef53e3;p=poolifier.git refactor: cleanup IWRR init Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts index 20e58752..5338b320 100644 --- a/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts @@ -45,7 +45,7 @@ export class WeightedRoundRobinWorkerChoiceStrategy< opts: InternalWorkerChoiceStrategyOptions ) { super(pool, opts) - this.setOptions(this.opts) + this.setTaskStatisticsRequirements(this.opts) } /** @inheritDoc */