From: Jérôme Benoit Date: Wed, 5 Jul 2023 22:02:30 +0000 (+0200) Subject: fix: revert now unneeded workaround X-Git-Tag: v2.6.9~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2cfaaca0ed2e25699bfffea2d164a1bcee1928a3;p=poolifier.git fix: revert now unneeded workaround Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index fc18d6b6..22c35620 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1130,23 +1130,13 @@ export abstract class AbstractPool< if (worker == null) { return 0 } - // FIXME: Workaround tasks queue initialization race issue. - try { - return this.tasksQueueSize(this.getWorkerNodeKey(worker)) - } catch { - return 0 - } + return this.tasksQueueSize(this.getWorkerNodeKey(worker)) } const getTasksMaxQueueSize = (worker?: Worker): number => { if (worker == null) { return 0 } - // FIXME: Workaround tasks queue initialization race issue. - try { - return this.tasksMaxQueueSize(this.getWorkerNodeKey(worker)) - } catch { - return 0 - } + return this.tasksMaxQueueSize(this.getWorkerNodeKey(worker)) } return { tasks: {