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 882c1acdad98376691c698f88943f8cfe6fef1fb..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,19
+19,17
@@
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}`
)
)
- } else {
- console.error('Fastify failed to start on worker:', response.error)
}
return null
})
.catch(error => {
}
return null
})
.catch(error => {
- console.error(error)
+ console.error(
'Fastify failed to start in cluster worker:',
error)
})
},
errorHandler: (e: Error) => {
})
},
errorHandler: (e: Error) => {
- console.error(e)
+ console.error(
'Cluster worker error:',
e)
}
}
)
}
}
)