repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: silence sonar
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
least-elu-worker-choice-strategy.ts
diff --git
a/src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
b/src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
index eca5a1cf541eca5d25102cacf821a08b556ad894..5df742a665d5d9b5ed838beb887e426da43ade07 100644
(file)
--- a/
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
+++ b/
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
@@
-63,7
+63,7
@@
export class LeastEluWorkerChoiceStrategy<
const workerElu = workerUsage.elu?.active.aggregate ?? 0
if (workerElu === 0) {
this.nextWorkerNodeId = workerNodeKey
const workerElu = workerUsage.elu?.active.aggregate ?? 0
if (workerElu === 0) {
this.nextWorkerNodeId = workerNodeKey
- return true
+ break
} else if (workerElu < minWorkerElu) {
minWorkerElu = workerElu
this.nextWorkerNodeId = workerNodeKey
} else if (workerElu < minWorkerElu) {
minWorkerElu = workerElu
this.nextWorkerNodeId = workerNodeKey