feat: add worker choice strategies retry mechanism
[poolifier.git] / src / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.ts
index fecba414ae1f8b18c29f566192ba577eb60b2288..b5c566d51b2e8e0d41261c11acc9956674be9b5b 100644 (file)
@@ -79,7 +79,7 @@ export class WeightedRoundRobinWorkerChoiceStrategy<
     const chosenWorkerNodeKey = this.nextWorkerNodeKey
     do {
       this.weightedRoundRobinNextWorkerNodeKey()
-    } while (!this.isWorkerNodeReady(this.nextWorkerNodeKey))
+    } while (!this.isWorkerNodeEligible(this.nextWorkerNodeKey))
     return chosenWorkerNodeKey
   }