From: Jérôme Benoit Date: Tue, 11 Apr 2023 21:12:13 +0000 (+0200) Subject: refactor: align method scope X-Git-Tag: v2.4.7~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=14a2e530e555fa52f98454e182d0094e0ff5d86f;p=poolifier.git refactor: align method scope Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index 81e7b3b7..faa68fc7 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -66,7 +66,7 @@ export class FixedClusterPool< } /** @inheritDoc */ - public destroyWorker (worker: Worker): void { + protected destroyWorker (worker: Worker): void { this.sendToWorker(worker, { kill: 1 }) worker.kill() } diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index e7d3a727..764d5851 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -51,7 +51,7 @@ export class FixedThreadPool< } /** @inheritDoc */ - public async destroyWorker ( + protected async destroyWorker ( worker: ThreadWorkerWithMessageChannel ): Promise { this.sendToWorker(worker, { kill: 1 })