mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Fix: stop append speedtest
This commit is contained in:
parent
6308ce2536
commit
da58e78e69
@ -83,16 +83,16 @@ const querySpeedtestApi = async (keyword: string): Promise<Array<string | null>>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPreviousSpeedtestDomainsPromise = createMemoizedPromise(async () => {
|
// const getPreviousSpeedtestDomainsPromise = createMemoizedPromise(async () => {
|
||||||
const domains = new Set<string>();
|
// const domains = new Set<string>();
|
||||||
for await (const l of await fetchRemoteTextByLine('https://ruleset.skk.moe/List/domainset/speedtest.conf')) {
|
// for await (const l of await fetchRemoteTextByLine('https://ruleset.skk.moe/List/domainset/speedtest.conf')) {
|
||||||
const line = processLine(l);
|
// const line = processLine(l);
|
||||||
if (line) {
|
// if (line) {
|
||||||
domains.add(line);
|
// domains.add(line);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return domains;
|
// return domains;
|
||||||
});
|
// });
|
||||||
|
|
||||||
export const buildSpeedtestDomainSet = task(import.meta.path, async (span) => {
|
export const buildSpeedtestDomainSet = task(import.meta.path, async (span) => {
|
||||||
// Predefined domainset
|
// Predefined domainset
|
||||||
@ -183,9 +183,9 @@ export const buildSpeedtestDomainSet = task(import.meta.path, async (span) => {
|
|||||||
'mensura.cdn-apple.com' // From netQuality command
|
'mensura.cdn-apple.com' // From netQuality command
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await span.traceChildAsync('fetch previous speedtest domainset', async () => {
|
// await span.traceChildAsync('fetch previous speedtest domainset', async () => {
|
||||||
SetHelpers.add(domains, await getPreviousSpeedtestDomainsPromise());
|
// SetHelpers.add(domains, await getPreviousSpeedtestDomainsPromise());
|
||||||
});
|
// });
|
||||||
|
|
||||||
await new Promise<void>((resolve) => {
|
await new Promise<void>((resolve) => {
|
||||||
const pMap = ([
|
const pMap = ([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user