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/http-server-pool/express-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 69a329b6a9b3613b6da047af2786698f7e1134aa..d7b6c89d1b76f45b335f357405c08f25dd6aa13c 100644
(file)
--- a/
examples/typescript/http-server-pool/express-hybrid/src/main.ts
+++ b/
examples/typescript/http-server-pool/express-hybrid/src/main.ts
@@
-31,16
+31,17
@@
const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
workerFile: requestHandlerWorkerFile,
enableTasksQueue: true,
tasksQueueOptions: {
workerFile: requestHandlerWorkerFile,
enableTasksQueue: true,
tasksQueueOptions: {
- concurrency: 8
+ concurrency: 8
,
},
errorHandler: (e: Error) => {
console.error('Thread worker error:', e)
},
errorHandler: (e: Error) => {
console.error('Thread worker error:', e)
- }
+ }
,
})
.then(response => {
if (response.status) {
console.info(
})
.then(response => {
if (response.status) {
console.info(
- `Express is listening in cluster worker on port ${response.port}`
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
+ `Express is listening in cluster worker on port ${response.port?.toString()}`
)
}
return undefined
)
}
return undefined
@@
-51,6
+52,6
@@
const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
},
errorHandler: (e: Error) => {
console.error('Cluster worker error:', e)
},
errorHandler: (e: Error) => {
console.error('Cluster worker error:', e)
- }
+ }
,
}
)
}
)