mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Chore: better stat tracking
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { fetchRemoteTextByLine } from './lib/fetch-text-by-line';
|
||||
import { task } from './trace';
|
||||
import { SpanCategory, task } from './trace';
|
||||
|
||||
import { IPListOutput } from './lib/rules/ip';
|
||||
import { createFileDescription } from './constants/description';
|
||||
@@ -10,7 +10,7 @@ const getChnCidrPromise = Promise.all([
|
||||
]);
|
||||
|
||||
export const buildChnCidr = task(require.main === module, __filename)(async (span) => {
|
||||
const [filteredCidr4, cidr6] = await span.traceChildPromise('download chnroutes2', getChnCidrPromise);
|
||||
const [filteredCidr4, cidr6] = await span.traceChildPromise('download chnroutes2', getChnCidrPromise, SpanCategory.Network);
|
||||
|
||||
// Can not use SHARED_DESCRIPTION here as different license
|
||||
const description = createFileDescription('CC BY-SA 2.0');
|
||||
|
||||
Reference in New Issue
Block a user