feat: add worker choice strategies retry mechanism
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index b023234a202cacc50b8f2505859e4e444bcf8f0f..55fa8ad73d4c7b7713a490cf07265e3634803779 100644 (file)
@@ -52,7 +52,7 @@ export class RoundRobinWorkerChoiceStrategy<
     const chosenWorkerNodeKey = this.nextWorkerNodeKey
     do {
       this.roundRobinNextWorkerNodeKey()
-    } while (!this.isWorkerNodeReady(this.nextWorkerNodeKey))
+    } while (!this.isWorkerNodeEligible(this.nextWorkerNodeKey))
     return chosenWorkerNodeKey
   }