From: Jérôme Benoit Date: Fri, 11 Aug 2023 17:25:22 +0000 (+0200) Subject: docs: add comment on fastify TS example X-Git-Tag: v2.6.23~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=75cfb36d305bddb2fc5f4ccd10c3ea0d9bc2ff1f;p=poolifier.git docs: add comment on fastify TS example Signed-off-by: Jérôme Benoit --- diff --git a/examples/typescript/http-server-pool/fastify/src/main.ts b/examples/typescript/http-server-pool/fastify/src/main.ts index 5bf714aa..a71c0b76 100644 --- a/examples/typescript/http-server-pool/fastify/src/main.ts +++ b/examples/typescript/http-server-pool/fastify/src/main.ts @@ -4,6 +4,10 @@ import Fastify from 'fastify' import { availableParallelism } from 'poolifier' import { fastifyPoolifier } from './fastify-poolifier.js' +/** + * The fastify server is still a single-threaded application, but the request handling can be multi-threaded. + */ + const port = 8080 const fastify = Fastify({ logger: true