X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fsrc%2Fmain.ts;h=88167a3c091cdd8ee225b53d160e0ac5983a3d3b;hb=3174f5a6007120dcd1c46f6621fb1693d3b8e5d8;hp=1dc88be27f0ca235775b0ce61014160c464bbe40;hpb=8ad621cc1d32ed396fca3ef2ec48337e42d2dcc2;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 1dc88be2..88167a3c 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) }) },