From: Jérôme Benoit Date: Tue, 11 Jul 2023 17:57:31 +0000 (+0200) Subject: refactor: methods namepace cleanup X-Git-Tag: v2.6.15~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=10e2aa7eed41bc326d02cf6055242768465ecdc5;p=poolifier.git refactor: methods namepace cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 3ef57612..b43d44a5 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1078,8 +1078,8 @@ export abstract class AbstractPool< return message => { this.checkMessageWorkerId(message) if (message.ready != null) { - // Worker ready message received - this.handleWorkerReadyMessage(message) + // Worker ready response received + this.handleWorkerReadyResponse(message) } else if (message.id != null) { // Task execution response received this.handleTaskExecutionResponse(message) @@ -1087,7 +1087,7 @@ export abstract class AbstractPool< } } - private handleWorkerReadyMessage (message: MessageValue): void { + private handleWorkerReadyResponse (message: MessageValue): void { const worker = this.getWorkerById(message.workerId) this.getWorkerInfo(this.getWorkerNodeKey(worker as Worker)).ready = message.ready as boolean