Perf: minor improvements here and there

This commit is contained in:
SukkaW
2025-01-23 22:30:04 +08:00
parent cf58e215f5
commit fe06774a19
5 changed files with 78 additions and 46 deletions

View File

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