X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fsrc%2Fworker.ts;h=1551cb282ede3679ade624acb473a8ac2ab568c3;hb=8b81cdcfe1ff18b5cded9883600455cb4c54d698;hp=2f6c8f6dec1fcf405c8ce5bdb78a51c84c7c1915;hpb=cf02ff9e146e22a2f99a6af35de7ce49efd4c6b5;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-cluster/src/worker.ts b/examples/typescript/http-server-pool/fastify-cluster/src/worker.ts index 2f6c8f6d..1551cb28 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/src/worker.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/src/worker.ts @@ -16,7 +16,7 @@ class FastifyWorker extends ClusterWorker { private static readonly startFastify = async ( workerData?: WorkerData ): Promise => { - const { port } = workerData as WorkerData + const { port } = workerData! FastifyWorker.fastify = Fastify({ logger: true