refactor(ci): cleanup GH actions
[poolifier.git] / examples / typescript / http-client-pool / src / pool.ts
index 673b71b894f19335f00aabb474f804cac7ffb99f..83bec2fd5ac1dc501a4c6b8cc68ca56721d170c5 100644 (file)
@@ -1,6 +1,8 @@
-import { fileURLToPath } from 'node:url'
 import { dirname, extname, join } from 'node:path'
-import { DynamicThreadPool, availableParallelism } from 'poolifier'
+import { fileURLToPath } from 'node:url'
+
+import { availableParallelism, DynamicThreadPool } from 'poolifier'
+
 import type { WorkerData, WorkerResponse } from './types.js'
 
 const workerFile = join(
@@ -15,10 +17,10 @@ export const httpClientPool = new DynamicThreadPool<WorkerData, WorkerResponse>(
   {
     enableTasksQueue: true,
     tasksQueueOptions: {
-      concurrency: 8
+      concurrency: 8,
     },
     errorHandler: (e: Error) => {
       console.error('Thread worker error:', e)
-    }
+    },
   }
 )