From: Jérôme Benoit Date: Sun, 14 Jan 2024 23:46:56 +0000 (+0100) Subject: refactor: use zero sized dynamic pool in examples X-Git-Tag: v3.1.19~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0fce423d00ff1b5714140f22ebc47484affa3d94;p=poolifier.git refactor: use zero sized dynamic pool in examples Signed-off-by: Jérôme Benoit --- 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