feat: add pool runtime setters
[poolifier.git] / src / pools / selection-strategies / less-busy-worker-choice-strategy.ts
index 708c491f63dea4183232c20f5d1c7373d14738ba..d862405c2e07b224602e21093f235675ee8c750c 100644 (file)
@@ -35,7 +35,7 @@ export class LessBusyWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.checkOptions(opts)
+    this.checkOptions(this.opts)
   }
 
   /** @inheritDoc */