mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: reduce speedtest API concurrency
This commit is contained in:
@@ -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[]>());
|
||||||
|
|||||||
Reference in New Issue
Block a user