Feat: implement parallel fetch w/ HTTP 304 (#43)

This commit is contained in:
Sukka
2024-10-09 20:49:36 +08:00
committed by GitHub
parent 07d3fdf05b
commit 2e48a72a3c
10 changed files with 273 additions and 111 deletions

View File

@@ -1,5 +1,6 @@
import process from 'node:process';
import os from 'node:os';
import wtf from 'wtfnode';
import { downloadPreviousBuild } from './download-previous-build';
import { buildCommon } from './build-common';
@@ -121,6 +122,7 @@ process.on('unhandledRejection', (reason) => {
printTraceResult(rootSpan.traceResult);
// Finish the build to avoid leaking timer/fetch ref
wtf.dump();
process.exit(0);
} catch (e) {
console.trace(e);