mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor: full span tracer
This commit is contained in:
@@ -21,7 +21,7 @@ export const getDomesticDomainsRulesetPromise = createMemoizedPromise(async () =
|
||||
return results;
|
||||
});
|
||||
|
||||
export const buildDomesticRuleset = task(import.meta.path, async () => {
|
||||
export const buildDomesticRuleset = task(import.meta.path, async (span) => {
|
||||
const rulesetDescription = [
|
||||
...SHARED_DESCRIPTION,
|
||||
'',
|
||||
@@ -29,7 +29,8 @@ export const buildDomesticRuleset = task(import.meta.path, async () => {
|
||||
];
|
||||
|
||||
return Promise.all([
|
||||
...createRuleset(
|
||||
createRuleset(
|
||||
span,
|
||||
'Sukka\'s Ruleset - Domestic Domains',
|
||||
rulesetDescription,
|
||||
new Date(),
|
||||
@@ -39,6 +40,7 @@ export const buildDomesticRuleset = task(import.meta.path, async () => {
|
||||
path.resolve(import.meta.dir, '../Clash/non_ip/domestic.txt')
|
||||
),
|
||||
compareAndWriteFile(
|
||||
span,
|
||||
[
|
||||
'#!name=[Sukka] Local DNS Mapping',
|
||||
`#!desc=Last Updated: ${new Date().toISOString()}`,
|
||||
|
||||
Reference in New Issue
Block a user