X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Ffastify-worker.ts;h=28bf2a01f1cb0d15aff9b86d3bbbeed98c9bd808;hb=8166b5b31ebb2d15bbdc112f1a86d3774fe21294;hp=388730dcec9bda04a13315f4f0b5fb1814981266;hpb=563b18cd8fe9c211f15e9da91a299f2819abea01;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-worker.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-worker.ts index 388730dc..28bf2a01 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-worker.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-worker.ts @@ -13,7 +13,7 @@ ClusterWorkerResponse private static readonly startFastify = async ( workerData?: ClusterWorkerData ): Promise => { - const { port, ...fastifyPoolifierOptions } = workerData as ClusterWorkerData + const { port, ...fastifyPoolifierOptions } = workerData! FastifyWorker.fastify = Fastify({ logger: true