build(deps-dev): apply updates
[poolifier.git] / examples / typescript / smtp-client-pool / src / pool.ts
index ec2ec1367c5f0219dd8f685d3977e1f61d0ddf7a..2fc53c980b20b9f26590e3408382f88cd86ada62 100644 (file)
@@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url'
 import { dirname, extname, join } from 'node:path'
 import { DynamicThreadPool, availableParallelism } from 'poolifier'
 import type SMTPTransport from 'nodemailer/lib/smtp-transport/index.js'
-import { type WorkerData } from './types.js'
+import type { WorkerData } from './types.js'
 
 const workerFile = join(
   dirname(fileURLToPath(import.meta.url)),
@@ -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