fix: fix workey weights input validation
[poolifier.git] / src / pools / selection-strategies / less-used-worker-choice-strategy.ts
index 295493a494f842da32645f563469e5ba272eea3d..a8daa7b9f43d05e871cf38e0822cb986ba671239 100644 (file)
@@ -27,7 +27,7 @@ export class LessUsedWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.checkOptions(this.opts)
+    this.setRequiredStatistics(this.opts)
   }
 
   /** @inheritDoc */