refactor: incrementation consistency
[poolifier.git] / src / worker / cluster-worker.ts
index 16dddd2969bd50193c4fb43e762d607f08f4ca08..c43e7f75a7586d2b2a9fa6633eea7da6e44697bf 100644 (file)
@@ -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<Response>): 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
-  }
 }