fix: fix worker node removal handling in worker choice strategies
[poolifier.git] / src / pools / selection-strategies / worker-choice-strategy-context.ts
index b7e0a4a7d8d80bc98d55a859cc241f1600bfd41f..40e2e18f303122685c70eb09e824175ab5309cef 100644 (file)
@@ -188,9 +188,6 @@ export class WorkerChoiceStrategyContext<
     let retriesCount = 0
     do {
       workerNodeKey = workerChoiceStrategy.choose()
-      if (workerNodeKey != null && workerNodeKey < 0) {
-        workerNodeKey = undefined
-      }
       if (workerNodeKey == null && chooseCount > 0) {
         retriesCount++
       }