repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:poolifier/poolifier
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-cluster
/
src
/
main.ts
diff --git
a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts
b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts
index 0ac8f5ceac06007176dc425c7410223f2a12df2e..88167a3c091cdd8ee225b53d160e0ac5983a3d3b 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-cluster/src/main.ts
+++ b/
examples/typescript/http-server-pool/fastify-cluster/src/main.ts
@@
-19,13
+19,13
@@
const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `Fastify is listening
on
worker on port ${response.port}`
+ `Fastify is listening
in cluster
worker on port ${response.port}`
)
}
return null
})
.catch(error => {
)
}
return null
})
.catch(error => {
- console.error('Fastify failed to start
on
worker:', error)
+ console.error('Fastify failed to start
in cluster
worker:', error)
})
},
errorHandler: (e: Error) => {
})
},
errorHandler: (e: Error) => {