From: Jérôme Benoit Date: Sun, 9 Jul 2023 13:44:03 +0000 (+0200) Subject: fix: fix async task statistics accounting X-Git-Tag: v2.6.13~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4fe5947ed052e344500491261c2eb7dc0686480f;p=poolifier.git fix: fix async task statistics accounting Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 1eac7427..23739270 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -292,7 +292,7 @@ export abstract class AbstractWorker< fn: WorkerAsyncFunction, message: MessageValue ): void { - let taskPerformance = this.beginTaskPerformance() + let taskPerformance = this.beginTaskPerformance(message.name) fn(message.data) .then(res => { taskPerformance = this.endTaskPerformance(taskPerformance)