X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Fmain.ts;h=d9a0015c637d528703902440ec0e986d5cc86450;hb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;hp=66be31a8aca6bef23391127b94391efc0b75361c;hpb=fef029a52aacd3063ba882834ce58527600009ca;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts index 66be31a8..d9a0015c 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts @@ -17,6 +17,7 @@ const pool = new FixedClusterPool( Math.round(availableParallelism() / 2), fastifyWorkerFile, { + enableEvents: false, onlineHandler: () => { pool .execute({ @@ -41,7 +42,7 @@ const pool = new FixedClusterPool( `Fastify is listening in cluster worker on port ${response.port}` ) } - return null + return undefined }) .catch(error => { console.error('Fastify failed to start in cluster worker:', error)