mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Refactor: rework tracer
This commit is contained in:
@@ -93,7 +93,7 @@ const getPreviousSpeedtestDomainsPromise = createMemoizedPromise(async () => {
|
||||
return domains;
|
||||
});
|
||||
|
||||
export const buildSpeedtestDomainSet = task(import.meta.path, async (span) => {
|
||||
export const buildSpeedtestDomainSet = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
// Predefined domainset
|
||||
/** @type {Set<string>} */
|
||||
const domains = new Set<string>([
|
||||
@@ -267,7 +267,3 @@ export const buildSpeedtestDomainSet = task(import.meta.path, async (span) => {
|
||||
path.resolve(import.meta.dir, '../Clash/domainset/speedtest.txt')
|
||||
);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildSpeedtestDomainSet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user