mirror of
https://github.com/SukkaW/Surge.git
synced 2026-04-30 01:46:57 +08:00
Chore: allow trace tool to run across workers/realms
This commit is contained in:
@@ -124,10 +124,12 @@ const buildFinishedLock = path.join(ROOT_DIR, '.BUILD_FINISHED');
|
||||
});
|
||||
printStats(traces);
|
||||
|
||||
await microsoftCdnWorker.end();
|
||||
await cdnDownloadWorker.end();
|
||||
await telegramCidrWorker.end();
|
||||
await mockAssetsWorker.end();
|
||||
await Promise.all([
|
||||
microsoftCdnWorker.end(),
|
||||
cdnDownloadWorker.end(),
|
||||
telegramCidrWorker.end(),
|
||||
mockAssetsWorker.end()
|
||||
]);
|
||||
|
||||
// Finish the build to avoid leaking timer/fetch ref
|
||||
await whyIsNodeRunning();
|
||||
|
||||
Reference in New Issue
Block a user