fix: fix dynamic pool with minimum # of workers set to zero
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index 41326a78ea0ec3ea2b198de4255c827774422f1b..53f3ba4fd36c0ee70f0918889e5a5edd9708645b 100644 (file)
@@ -44,7 +44,7 @@ export class RoundRobinWorkerChoiceStrategy<
     const chosenWorkerNodeKey = this.nextWorkerNodeKey
     this.setPreviousWorkerNodeKey(chosenWorkerNodeKey)
     this.roundRobinNextWorkerNodeKey()
-    this.checkNextWorkerNodeReadiness()
+    this.checkNextWorkerNodeKey()
     return chosenWorkerNodeKey
   }