From 6cbae9fd636239a8a1c668fd1f70c31093c5d6e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 11 Aug 2023 21:36:38 +0200 Subject: [PATCH] refactor: use default options values in fastify example MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/http-server-pool/fastify/src/main.ts | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.34.1