mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Feat: implement parallel fetch w/ HTTP 304 (#43)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { basename, extname } from 'node:path';
|
||||
import picocolors from 'picocolors';
|
||||
import wtf from 'wtfnode';
|
||||
|
||||
const SPAN_STATUS_START = 0;
|
||||
const SPAN_STATUS_END = 1;
|
||||
@@ -101,7 +102,9 @@ export const task = (importMetaMain: boolean, importMetaPath: string) => <T>(fn:
|
||||
|
||||
const dummySpan = createSpan(taskName);
|
||||
if (importMetaMain) {
|
||||
fn(dummySpan);
|
||||
fn(dummySpan).finally(() => {
|
||||
console.log(wtf.dump());
|
||||
});
|
||||
}
|
||||
|
||||
return async (span?: Span) => {
|
||||
|
||||
Reference in New Issue
Block a user