Refactor: track download stats and enable HTTP/2

This commit is contained in:
SukkaW
2025-01-11 23:40:04 +08:00
parent 29410eb1c3
commit b0a7a0b682
5 changed files with 14 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
fs.mkdirSync(CACHE_DIR, { recursive: true });
}
const agent = new Agent({});
const agent = new Agent({ allowH2: true });
setGlobalDispatcher(agent.compose(
interceptors.retry({