X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Fmain.ts;h=74ed1f70158ce7876e717ab844cd16e8e7a3b58f;hb=13de73740d2909dd6b06677f7f9b9978ff27eb2b;hp=fea592c4b180291e68c50b8844ae0f6e3d1eb290;hpb=7228a4d9f6e007bfa6326b2f663bf957594fc8c6;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 fea592c4..74ed1f70 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts @@ -31,16 +31,17 @@ const pool = new FixedClusterPool( : Math.round(availableParallelism() / 4), enableTasksQueue: true, tasksQueueOptions: { - concurrency: 8 + concurrency: 8, }, errorHandler: (e: Error) => { console.error('Thread worker error', e) - } + }, }) .then(response => { if (response.status) { console.info( - `Fastify is listening in cluster worker on port ${response.port}` + // eslint-disable-next-line @typescript-eslint/restrict-template-expressions + `Fastify is listening in cluster worker on port ${response.port?.toString()}` ) } return undefined @@ -51,6 +52,6 @@ const pool = new FixedClusterPool( }, errorHandler: (e: Error) => { console.error('Cluster worker error:', e) - } + }, } )