X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fcluster-worker.ts;h=c43e7f75a7586d2b2a9fa6633eea7da6e44697bf;hb=d881a2047924280a33a738d1df42257af1c8ef22;hp=16dddd2969bd50193c4fb43e762d607f08f4ca08;hpb=d33d2d2fed43d102479c38cc28b496872665a90d;p=poolifier.git diff --git a/src/worker/cluster-worker.ts b/src/worker/cluster-worker.ts index 16dddd29..c43e7f75 100644 --- a/src/worker/cluster-worker.ts +++ b/src/worker/cluster-worker.ts @@ -41,9 +41,6 @@ export class ClusterWorker< cluster.worker as Worker, opts ) - if (!this.isMain) { - this.sendToMainWorker({ workerId: this.id, started: true }) - } } /** @inheritDoc */ @@ -53,12 +50,6 @@ export class ClusterWorker< /** @inheritDoc */ protected sendToMainWorker (message: MessageValue): void { - console.log('sending message to main worker(cluster)', message) this.getMainWorker().send(message) } - - /** @inheritDoc */ - protected handleError (e: Error | string): string { - return e instanceof Error ? e.message : e - } }