mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Chore: reduce speedtest API concurrency
This commit is contained in:
parent
50ae7c0644
commit
68e5822f0f
@ -10,7 +10,7 @@ import { fetchWithRetry } from './lib/fetch-retry';
|
|||||||
import { SHARED_DESCRIPTION } from './lib/constants';
|
import { SHARED_DESCRIPTION } from './lib/constants';
|
||||||
import { getGorhillPublicSuffixPromise } from './lib/get-gorhill-publicsuffix';
|
import { getGorhillPublicSuffixPromise } from './lib/get-gorhill-publicsuffix';
|
||||||
|
|
||||||
const s = new Sema(3);
|
const s = new Sema(2);
|
||||||
|
|
||||||
const latestTopUserAgentsPromise = fetchWithRetry('https://unpkg.com/top-user-agents@latest/index.json')
|
const latestTopUserAgentsPromise = fetchWithRetry('https://unpkg.com/top-user-agents@latest/index.json')
|
||||||
.then(res => res.json<string[]>());
|
.then(res => res.json<string[]>());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user