X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-cluster%2Fsrc%2Fmain.ts;h=512f8d377f696f4c0534dbe381b110f827a6a72e;hb=96f8e6b29466ced347e1a317a1864a136ed6a5ab;hp=86560455f33908f69aa762099bac010edf803d8a;hpb=fef029a52aacd3063ba882834ce58527600009ca;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-cluster/src/main.ts b/examples/typescript/http-server-pool/express-cluster/src/main.ts index 86560455..512f8d37 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/express-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( `Express is listening in cluster worker on port ${response?.port}` ) } - return null + return undefined }) .catch(error => { console.error('Express failed to start in cluster worker:', error)