X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-client-pool%2Fsrc%2Fpool.ts;h=6988372eb1e4e07683fd129f8a2ea2b9ea0d40e2;hb=394676d15b59b7013b9d95889e47a4a49860b057;hp=3d64150a8af14c161c4a005a044ad2b003bacad0;hpb=3b3115396965edad0cf3fefc4f9081977310da34;p=poolifier.git diff --git a/examples/typescript/http-client-pool/src/pool.ts b/examples/typescript/http-client-pool/src/pool.ts index 3d64150a..6988372e 100644 --- a/examples/typescript/http-client-pool/src/pool.ts +++ b/examples/typescript/http-client-pool/src/pool.ts @@ -1,7 +1,9 @@ -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 { fileURLToPath } from 'node:url' + +import { availableParallelism, DynamicThreadPool } from 'poolifier' + +import type { WorkerData, WorkerResponse } from './types.js' const workerFile = join( dirname(fileURLToPath(import.meta.url)), @@ -9,7 +11,7 @@ const workerFile = join( ) export const httpClientPool = new DynamicThreadPool( - 1, + 0, availableParallelism(), workerFile, {