X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-client-pool%2Fsrc%2Fworker.ts;h=904279b48ed940b17f1ffbb7c4b1743ade65457e;hb=29c095a4da0b4bc1e04991c33e4951072359aad0;hp=1e89761f9439cb019e271de8620f1d52b0f1e67d;hpb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;p=poolifier.git diff --git a/examples/typescript/http-client-pool/src/worker.ts b/examples/typescript/http-client-pool/src/worker.ts index 1e89761f..904279b4 100644 --- a/examples/typescript/http-client-pool/src/worker.ts +++ b/examples/typescript/http-client-pool/src/worker.ts @@ -1,9 +1,10 @@ -import { ThreadWorker } from 'poolifier' +import axios from 'axios' import nodeFetch, { type RequestInfo as NodeFetchRequestInfo, type ResponseInit as NodeFetchRequestInit } from 'node-fetch' -import axios from 'axios' +import { ThreadWorker } from 'poolifier' + import type { WorkerData, WorkerResponse } from './types.js' class HttpClientWorker extends ThreadWorker {