repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.6.7
[poolifier.git]
/
src
/
worker
/
cluster-worker.ts
diff --git
a/src/worker/cluster-worker.ts
b/src/worker/cluster-worker.ts
index 16dddd2969bd50193c4fb43e762d607f08f4ca08..c43e7f75a7586d2b2a9fa6633eea7da6e44697bf 100644
(file)
--- a/
src/worker/cluster-worker.ts
+++ b/
src/worker/cluster-worker.ts
@@
-41,9
+41,6
@@
export class ClusterWorker<
cluster.worker as Worker,
opts
)
cluster.worker as Worker,
opts
)
- if (!this.isMain) {
- this.sendToMainWorker({ workerId: this.id, started: true })
- }
}
/** @inheritDoc */
}
/** @inheritDoc */
@@
-53,12
+50,6
@@
export class ClusterWorker<
/** @inheritDoc */
protected sendToMainWorker (message: MessageValue<Response>): void {
/** @inheritDoc */
protected sendToMainWorker (message: MessageValue<Response>): void {
- console.log('sending message to main worker(cluster)', message)
this.getMainWorker().send(message)
}
this.getMainWorker().send(message)
}
-
- /** @inheritDoc */
- protected handleError (e: Error | string): string {
- return e instanceof Error ? e.message : e
- }
}
}