X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Fmain.ts;h=6b9c172792805277e23800cb8bd6571f855670fa;hb=f952c226dbc985816474d6682d6b151bd6fdb878;hp=66be31a8aca6bef23391127b94391efc0b75361c;hpb=edd5088275648b8ae534dcd75ba23443fe947954;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..6b9c1727 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({ @@ -37,11 +38,10 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `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)