Skip to content

Commit

Permalink
refactor: Remove global dispatcher config
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Oct 27, 2024
1 parent 0081e11 commit 01057f6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/platform/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
Response,
Headers,
FormData,
File,
setGlobalDispatcher,
Agent
File
} from 'undici';
import type { ICache } from '../types/Cache.js';
import { Platform } from '../utils/Utils.js';
Expand All @@ -29,12 +27,6 @@ const __dirname__ = is_cjs ? __dirname : path.dirname(fileURLToPath(meta_url));
const { homepage, version, bugs } = $INLINE_JSON('../../package.json');
const repo_url = homepage?.split('#')[0];

setGlobalDispatcher(new Agent({
connect: {
timeout: 60_000
}
}));

class Cache implements ICache {
#persistent_directory: string;
#persistent: boolean;
Expand Down

0 comments on commit 01057f6

Please sign in to comment.