From: Jérôme Benoit Date: Fri, 11 Aug 2023 19:36:38 +0000 (+0200) Subject: refactor: use default options values in fastify example X-Git-Tag: v2.6.24~21 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6cbae9fd636239a8a1c668fd1f70c31093c5d6e2;p=poolifier.git refactor: use default options values in fastify 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 a71c0b76..c17de65b 100644 --- a/examples/typescript/http-server-pool/fastify/src/main.ts +++ b/examples/typescript/http-server-pool/fastify/src/main.ts @@ -1,7 +1,6 @@ import { dirname, extname, join } from 'node:path' import { fileURLToPath } from 'node:url' import Fastify from 'fastify' -import { availableParallelism } from 'poolifier' import { fastifyPoolifier } from './fastify-poolifier.js' /** @@ -20,8 +19,6 @@ const workerFile = join( await fastify.register(fastifyPoolifier, { workerFile, - minWorkers: 1, - maxWorkers: availableParallelism(), enableTasksQueue: true, tasksQueueOptions: { concurrency: 8