feat: conditional task performance computation at the worker level
[poolifier.git] / src / pools / selection-strategies / least-used-worker-choice-strategy.ts
index 86a1ef23f1871ca85c0376db73b3517666e977ba..d9e3c20e1d56e951238cdbfc47ab2c4698ca999a 100644 (file)
@@ -27,7 +27,7 @@ export class LeastUsedWorkerChoiceStrategy<
     opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
   ) {
     super(pool, opts)
-    this.setRequiredStatistics(this.opts)
+    this.setTaskStatistics(this.opts)
   }
 
   /** @inheritDoc */