X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fsrc%2Fmain.ts;h=588adbedd44539fb8488ec22c616da1a955d7a44;hb=44bd11071604d65be6edca4bc7711786728e338c;hp=88167a3c091cdd8ee225b53d160e0ac5983a3d3b;hpb=041dc05b2a95b36db72525072ba54c4c58ffcf0e;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts index 88167a3c..588adbed 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts @@ -12,6 +12,7 @@ const pool = new FixedClusterPool( availableParallelism(), workerFile, { + enableEvents: false, onlineHandler: () => { pool .execute({ port: 8080 }) @@ -22,7 +23,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)