repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-hybrid...
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
express-hybrid
/
src
/
main.ts
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 e339f83a276893e360140c77c40f510950e9406c..69a329b6a9b3613b6da047af2786698f7e1134aa 100644
(file)
--- 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 { 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(
import type { ClusterWorkerData, ClusterWorkerResponse } from './types.js'
const expressWorkerFile = join(
@@
-43,7
+45,7
@@
const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
}
return undefined
})
}
return undefined
})
- .catch(
error
=> {
+ .catch(
(error: unknown)
=> {
console.error('Express failed to start in cluster worker:', error)
})
},
console.error('Express failed to start in cluster worker:', error)
})
},