X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fsrc%2Fmain.ts;h=eb7720350077b69d28918356389022b9d3c874ce;hb=99396c0781b474a7f0988413232357cd368881ab;hp=882c1acdad98376691c698f88943f8cfe6fef1fb;hpb=8a199a0a5716a52b4f54f212c2d139b7fddee9bc;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 882c1acd..eb772035 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts @@ -19,19 +19,17 @@ const pool = new FixedClusterPool( if (response.status) { console.info( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - `Fastify is listening on worker on port ${response.port}` + `Fastify is listening in cluster worker on port ${response.port}` ) - } else { - console.error('Fastify failed to start on worker:', response.error) } - return null + return undefined }) .catch(error => { - console.error(error) + console.error('Fastify failed to start in cluster worker:', error) }) }, errorHandler: (e: Error) => { - console.error(e) + console.error('Cluster worker error:', e) } } )