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:
@@ -17,7 +17,7 @@ export const getAppleCdnDomainsPromise = createMemoizedPromise(() => fsFetchCach
|
||||
}
|
||||
));
|
||||
|
||||
export const buildAppleCdn = task(import.meta.path, async (span) => {
|
||||
export const buildAppleCdn = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
const promise = getAppleCdnDomainsPromise();
|
||||
const res: string[] = await span.traceChildPromise('get apple cdn domains', promise);
|
||||
|
||||
@@ -56,7 +56,3 @@ export const buildAppleCdn = task(import.meta.path, async (span) => {
|
||||
)
|
||||
]);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildAppleCdn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user