X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-cluster%2Fsrc%2Fmain.ts;h=86560455f33908f69aa762099bac010edf803d8a;hb=5902042d89ada18734bfe9e3e9590893e30fe402;hp=acbc9b7f8fb1b41cf47abd07e04f4a713e3c3bb8;hpb=15a9c19523fb6e13e034776b45121d6af1b1209e;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 acbc9b7f..86560455 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/express-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('Express failed to start in cluster worker:', error) }) },