X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fcluster-worker.ts;h=eedf13bd9265cb30b6d7cd689c42e2c517367acd;hb=efc4d37dd21d0c80e5fa2d58009e6298eefe5d48;hp=1a9deb304aaebf8f919cf91716427e865d58a02d;hpb=799c9e089724b6402ae72e0a60719017055a6669;p=poolifier.git diff --git a/src/worker/cluster-worker.ts b/src/worker/cluster-worker.ts index 1a9deb30..eedf13bd 100644 --- a/src/worker/cluster-worker.ts +++ b/src/worker/cluster-worker.ts @@ -62,6 +62,9 @@ export class ClusterWorker< protected readonly sendToMainWorker = ( message: MessageValue ): void => { - this.getMainWorker().send({ ...message, workerId: this.id }) + this.getMainWorker().send({ + ...message, + workerId: this.id + } satisfies MessageValue) } }