mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
refactor: Remove global dispatcher config
This commit is contained in:
@@ -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';
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user