From: Jérôme Benoit Date: Tue, 6 Jun 2023 21:56:33 +0000 (+0200) Subject: refactor: remove commented out code X-Git-Tag: v2.6.0~7^2~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cc750dcada47e9186271e0918b9b0bb8c77ba639;p=poolifier.git refactor: remove commented out code Signed-off-by: Jérôme Benoit --- 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 be3c4f5e..f58e3b50 100644 --- a/src/pools/selection-strategies/least-elu-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/least-elu-worker-choice-strategy.ts @@ -54,10 +54,6 @@ export class LeastEluWorkerChoiceStrategy< /** @inheritDoc */ public choose (): number { - // const freeWorkerNodeKey = this.findFreeWorkerNodeKey() - // if (freeWorkerNodeKey !== -1) { - // return freeWorkerNodeKey - // } let minTasksElu = Infinity let leastEluWorkerNodeKey!: number for (const [workerNodeKey, workerNode] of this.pool.workerNodes.entries()) {