X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-client-pool%2Fsrc%2Fpool.ts;h=7fbb20d55ac803f0aac47dee1e287edccd234e63;hb=95508b76afd1b490a1a381f58b4cccf6673b0b98;hp=f1306adfdbf06b05cf3830c0e229e97c616a2a0b;hpb=fac9ce963c96879918d8855c7bbed637dfcd54ff;p=poolifier.git diff --git a/examples/typescript/http-client-pool/src/pool.ts b/examples/typescript/http-client-pool/src/pool.ts index f1306adf..7fbb20d5 100644 --- a/examples/typescript/http-client-pool/src/pool.ts +++ b/examples/typescript/http-client-pool/src/pool.ts @@ -1,7 +1,7 @@ import { fileURLToPath } from 'node:url' import { dirname, extname, join } from 'node:path' import { DynamicThreadPool, availableParallelism } from 'poolifier' -import { type WorkerData, type WorkerResponse } from './types.js' +import type { WorkerData, WorkerResponse } from './types.js' const workerFile = join( dirname(fileURLToPath(import.meta.url)), @@ -18,7 +18,7 @@ export const httpClientPool = new DynamicThreadPool( concurrency: 8 }, errorHandler: (e: Error) => { - console.error(e) + console.error('Thread worker error:', e) } } )