fix: fix formatting issue.
[poolifier.git] / examples / typescript / http-server-pool / express-cluster / src / main.ts
index acbc9b7f8fb1b41cf47abd07e04f4a713e3c3bb8..86560455f33908f69aa762099bac010edf803d8a 100644 (file)
@@ -15,7 +15,7 @@ const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
     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<WorkerData, WorkerResponse>(
           }
           return null
         })
-        .catch((error) => {
+        .catch(error => {
           console.error('Express failed to start in cluster worker:', error)
         })
     },