refactor: remove commented out code
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Jun 2023 21:56:33 +0000 (23:56 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Jun 2023 21:56:33 +0000 (23:56 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts

index be3c4f5e2918ccd4bc9395bf0ab19fb72cfd19f0..f58e3b509e07bdb9de8e6782613bf4207d77674b 100644 (file)
@@ -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()) {