fix: fix workey weights input validation
[poolifier.git] / src / pools / selection-strategies / less-busy-worker-choice-strategy.ts
index 40a3f649b2116eec3f25b4b07347a8c5134b2e77..f518f9b17f311ad3a8ad262e3b7e5f0be15cc61b 100644 (file)
@@ -35,7 +35,7 @@ export class LessBusyWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.checkOptions(this.opts)
+    this.setRequiredStatistics(this.opts)
   }
 
   /** @inheritDoc */