X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Finterleaved-weighted-round-robin-worker-choice-strategy.ts;h=c45d6e0bf606f07a0ce792a5f68c2fbe017e2208;hb=refs%2Ftags%2Fv2.6.29;hp=26f9d909eed84f448e0244042d23dc289a26b96a;hpb=3f7d99f5a6b9783554886f1850aa45c5bc237b65;p=poolifier.git diff --git a/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts index 26f9d909..c45d6e0b 100644 --- a/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts @@ -81,7 +81,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy< const workerWeight = this.opts.weights?.[workerNodeKey] ?? this.defaultWorkerWeight if ( - this.isWorkerNodeReady(workerNodeKey) && + this.isWorkerNodeEligible(workerNodeKey) && workerWeight >= this.roundWeights[roundIndex] ) { roundId = roundIndex