Finish fs cache changes / tracer optimization

This commit is contained in:
SukkaW
2024-02-02 11:21:16 +08:00
parent 8428b3da42
commit efa1ab254e
14 changed files with 77 additions and 65 deletions

View File

@@ -32,7 +32,7 @@ export const buildChnCidr = task(import.meta.path, async (span) => {
const cidrPromise = getChnCidrPromise();
const peeked = Bun.peek(cidrPromise);
const filteredCidr: string[] = peeked === cidrPromise
? await span.traceChild('download chnroutes2').tracePromise(cidrPromise)
? await span.traceChildPromise('download chnroutes2', cidrPromise)
: (peeked as string[]);
// Can not use SHARED_DESCRIPTION here as different license