From 2cfaaca0ed2e25699bfffea2d164a1bcee1928a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 6 Jul 2023 00:02:30 +0200 Subject: [PATCH] fix: revert now unneeded workaround MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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: { -- 2.34.1