X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=1fea176c4f3884c1ce4778f891d059d9f48bbbde;hb=5ff840c7da44b209f1bab00f0881f7fc93e36eec;hp=aa731562011507f59b84cce1f7088be68924e0b0;hpb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index aa731562..1fea176c 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -52,11 +52,10 @@ export class FixedClusterPool< workerNodeKey: number, message: MessageValue ): void { - this.workerNodes[workerNodeKey].worker.send({ + this.workerNodes[workerNodeKey]?.worker.send({ ...message, - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - workerId: this.getWorkerInfo(workerNodeKey).id! - }) + workerId: this.getWorkerInfo(workerNodeKey)?.id + } satisfies MessageValue) } /** @inheritDoc */