refactor: cleanup IWRR init
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 12:06:03 +0000 (13:06 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 12:06:03 +0000 (13:06 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts

index 20e58752c7f5f39494b76d9eb349e4d09755adc8..5338b320b0586bab67195ed5b93e23a0e74cd2f0 100644 (file)
@@ -45,7 +45,7 @@ export class WeightedRoundRobinWorkerChoiceStrategy<
     opts: InternalWorkerChoiceStrategyOptions
   ) {
     super(pool, opts)
-    this.setOptions(this.opts)
+    this.setTaskStatisticsRequirements(this.opts)
   }
 
   /** @inheritDoc */