X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fsrc%2Fmain.ts;h=1dc88be27f0ca235775b0ce61014160c464bbe40;hb=9b121f9c11621140deabb4e061d23d019fe01bb3;hp=88167a3c091cdd8ee225b53d160e0ac5983a3d3b;hpb=80ccdab6c5ce5e7e6305c15dd29257d0acc9e302;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..1dc88be2 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts @@ -15,7 +15,7 @@ const pool = new FixedClusterPool( onlineHandler: () => { pool .execute({ port: 8080 }) - .then(response => { + .then((response) => { if (response.status) { console.info( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions @@ -24,7 +24,7 @@ const pool = new FixedClusterPool( } return null }) - .catch(error => { + .catch((error) => { console.error('Fastify failed to start in cluster worker:', error) }) },