X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-hybrid%2Fsrc%2Fmain.ts;h=69a329b6a9b3613b6da047af2786698f7e1134aa;hb=d3a9c958dcc326062e978f22d88747c00522032d;hp=e339f83a276893e360140c77c40f510950e9406c;hpb=c63a35a04c190989be80f9218d97e0aca739475e;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-hybrid/src/main.ts b/examples/typescript/http-server-pool/express-hybrid/src/main.ts index e339f83a..69a329b6 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/main.ts @@ -1,6 +1,8 @@ import { dirname, extname, join } from 'node:path' import { fileURLToPath } from 'node:url' -import { FixedClusterPool, availableParallelism } from 'poolifier' + +import { availableParallelism, FixedClusterPool } from 'poolifier' + import type { ClusterWorkerData, ClusterWorkerResponse } from './types.js' const expressWorkerFile = join( @@ -43,7 +45,7 @@ const pool = new FixedClusterPool( } return undefined }) - .catch(error => { + .catch((error: unknown) => { console.error('Express failed to start in cluster worker:', error) }) },