feat: add pool runtime setters
[poolifier.git] / src / pools / selection-strategies / less-used-worker-choice-strategy.ts
index 1138df952a4600b31ff4f60a5540b94f035b31b3..51039c95173f8dda07116c0876b5f26ef93dbd5b 100644 (file)
@@ -27,7 +27,7 @@ export class LessUsedWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.checkOptions(opts)
+    this.checkOptions(this.opts)
   }
 
   /** @inheritDoc */