Browse Source

Chore: reduce speedtest API concurrency

SukkaW 2 years ago
parent
commit
68e5822f0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/build-speedtest-domainset.ts

+ 1 - 1
Build/build-speedtest-domainset.ts

@@ -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[]>());