fix: fix merge with master
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 8 May 2023 10:59:55 +0000 (12:59 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 8 May 2023 10:59:55 +0000 (12:59 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts

index 907279263c4fc75d872b9eaa3dfe4c665b23b285..12a8055ecdd8691bc8cc29cef4c23a1804d66fda 100644 (file)
@@ -46,7 +46,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.checkOptions(this.opts)
+    this.setRequiredStatistics(this.opts)
     this.defaultWorkerWeight = this.computeDefaultWorkerWeight()
     this.roundWeights = this.getRoundWeights()
   }