Refactor: change trie object shape

This commit is contained in:
SukkaW
2024-06-28 14:33:49 +08:00
parent f224e77450
commit 724dcdf1ad
2 changed files with 52 additions and 46 deletions

View File

@@ -223,7 +223,7 @@ export const buildSpeedtestDomainSet = task(import.meta.main, import.meta.path)(
'Turkey'
]).reduce<Record<string, Promise<void>>>((pMap, keyword) => {
pMap[keyword] = span.traceChildAsync(`fetch speedtest endpoints: ${keyword}`, () => querySpeedtestApi(keyword)).then(hostnameGroup => {
hostnameGroup.forEach(hostname => {
return hostnameGroup.forEach(hostname => {
if (hostname) {
domains.add(hostname);
}