From 14a2e530e555fa52f98454e182d0094e0ff5d86f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 11 Apr 2023 23:12:13 +0200 Subject: [PATCH] refactor: align method scope MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/cluster/fixed.ts | 2 +- src/pools/thread/fixed.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }) -- 2.34.1