From 0fce423d00ff1b5714140f22ebc47484affa3d94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 15 Jan 2024 00:46:56 +0100 Subject: [PATCH] refactor: use zero sized dynamic pool in examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/http-client-pool/src/pool.ts | 2 +- examples/typescript/smtp-client-pool/src/pool.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/typescript/http-client-pool/src/pool.ts b/examples/typescript/http-client-pool/src/pool.ts index 7fbb20d5..673b71b8 100644 --- a/examples/typescript/http-client-pool/src/pool.ts +++ b/examples/typescript/http-client-pool/src/pool.ts @@ -9,7 +9,7 @@ const workerFile = join( ) export const httpClientPool = new DynamicThreadPool( - 1, + 0, availableParallelism(), workerFile, { diff --git a/examples/typescript/smtp-client-pool/src/pool.ts b/examples/typescript/smtp-client-pool/src/pool.ts index 85fb4cdf..2fc53c98 100644 --- a/examples/typescript/smtp-client-pool/src/pool.ts +++ b/examples/typescript/smtp-client-pool/src/pool.ts @@ -12,7 +12,7 @@ const workerFile = join( export const smtpClientPool = new DynamicThreadPool< WorkerData, SMTPTransport.SentMessageInfo ->(1, availableParallelism(), workerFile, { +>(0, availableParallelism(), workerFile, { enableTasksQueue: true, tasksQueueOptions: { concurrency: 8 -- 2.34.1