perf: optimize worker choice strategies
[poolifier.git] / src / pools / selection-strategies / abstract-worker-choice-strategy.ts
index a060cea3a5ba4486059fec1f6b45dac515f155e3..feb7d95763e562fa59e49f2da619d5662ec744c3 100644 (file)
@@ -26,6 +26,11 @@ export abstract class AbstractWorkerChoiceStrategy<
    */
   private toggleFindLastFreeWorkerNodeKey: boolean = false
 
+  /**
+   * Id of the next worker node.
+   */
+  protected nextWorkerNodeId: number = 0
+
   /** @inheritDoc */
   public readonly strategyPolicy: StrategyPolicy = {
     useDynamicWorker: false