fix: fix workey weights input validation
[poolifier.git] / src / pools / selection-strategies / less-used-worker-choice-strategy.ts
index 078dd8fd8149747ef121205145ee707c42204e36..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 */
@@ -62,7 +62,7 @@ export class LessUsedWorkerChoiceStrategy<
   }
 
   /** @inheritDoc */
-  public remove (workerNodeKey: number): boolean {
+  public remove (): boolean {
     return true
   }
 }