X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fsrc%2Fmain.ts;h=5610bc1d48bbadf0edee7b87b710d9feb5066d48;hb=73036251ff0e7ac2daa0b0031c77a3a429ba0e2d;hp=cc647a0fd2a707916999b6521096e298f872837d;hpb=563b18cd8fe9c211f15e9da91a299f2819abea01;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts index cc647a0f..5610bc1d 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts @@ -1,6 +1,9 @@ import { dirname, extname, join } from 'node:path' +import { exit } from 'node:process' import { fileURLToPath } from 'node:url' + import Fastify from 'fastify' + import { fastifyPoolifier } from './fastify-poolifier.js' /** @@ -43,5 +46,5 @@ try { await fastify.listen({ port }) } catch (err) { fastify.log.error(err) - process.exit(1) + exit(1) }