Re-enable Reverse CHN CIDR build

This commit is contained in:
SukkaW
2024-03-11 00:41:02 +08:00
parent 352ec2b515
commit 0622d5ea71
6 changed files with 44 additions and 75 deletions

View File

@@ -114,7 +114,7 @@ export const task = <T>(importMetaPath: string, fn: (span: Span) => T, customnam
const taskName = customname ?? path.basename(importMetaPath, path.extname(importMetaPath));
return async (span?: Span) => {
if (span) {
return span.traceChild(taskName).traceAsyncFn(fn);
return span.traceChildAsync(taskName, fn);
}
return fn(createSpan(taskName));
};