X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fcluster-worker.ts;h=d972692ec6eb4f182479cac008c47a1f20b75d8d;hb=de868be6cc9bcfb6d341ffb14e6407c24a1a0e17;hp=cafef7fc076feb74a3153418939820efd53153fc;hpb=04212af7b1a1494ff58da58c9e5b3397d25f18b7;p=poolifier.git diff --git a/src/worker/cluster-worker.ts b/src/worker/cluster-worker.ts index cafef7fc..d972692e 100644 --- a/src/worker/cluster-worker.ts +++ b/src/worker/cluster-worker.ts @@ -59,7 +59,9 @@ export class ClusterWorker< } /** @inheritDoc */ - protected sendToMainWorker (message: MessageValue): void { + protected readonly sendToMainWorker = ( + message: MessageValue + ): void => { this.getMainWorker().send({ ...message, workerId: this.id }) } }