Chore: housekeeping

This commit is contained in:
SukkaW
2023-10-16 22:52:08 +08:00
parent 36ef50cdbf
commit 697cea84ed
12 changed files with 227 additions and 291 deletions

View File

@@ -2,10 +2,10 @@
const undici = require('undici');
// Enable HTTP/2 supports
undici.setGlobalDispatcher(new undici.Agent({
allowH2: true,
pipelining: 10
}));
// undici.setGlobalDispatcher(new undici.Agent({
// allowH2: true,
// pipelining: 10
// }));
const fetchWithRetry = /** @type {import('undici').fetch} */(require('@vercel/fetch-retry')(undici.fetch));
module.exports.fetchWithRetry = fetchWithRetry;