repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix worker node removal handling in worker choice strategies
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
worker-choice-strategy-context.ts
diff --git
a/src/pools/selection-strategies/worker-choice-strategy-context.ts
b/src/pools/selection-strategies/worker-choice-strategy-context.ts
index b7e0a4a7d8d80bc98d55a859cc241f1600bfd41f..40e2e18f303122685c70eb09e824175ab5309cef 100644
(file)
--- a/
src/pools/selection-strategies/worker-choice-strategy-context.ts
+++ b/
src/pools/selection-strategies/worker-choice-strategy-context.ts
@@
-188,9
+188,6
@@
export class WorkerChoiceStrategyContext<
let retriesCount = 0
do {
workerNodeKey = workerChoiceStrategy.choose()
let retriesCount = 0
do {
workerNodeKey = workerChoiceStrategy.choose()
- if (workerNodeKey != null && workerNodeKey < 0) {
- workerNodeKey = undefined
- }
if (workerNodeKey == null && chooseCount > 0) {
retriesCount++
}
if (workerNodeKey == null && chooseCount > 0) {
retriesCount++
}