From: Jérôme Benoit Date: Wed, 23 Aug 2023 13:16:59 +0000 (+0200) Subject: refactor: trivial code cleanup X-Git-Tag: v2.6.32~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=736671a187d43642493e53970c6869947acae4fd;p=poolifier.git refactor: trivial code cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index d1bb5bc4..a4d83b59 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1189,7 +1189,7 @@ export abstract class AbstractPool< let executeTask = false for (const [workerNodeId, workerNode] of workerNodes.entries()) { if ( - this.workerNodes[workerNodeId].usage.tasks.executing < + workerNode.usage.tasks.executing < (this.opts.tasksQueueOptions?.concurrency as number) ) { executeTask = true