mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: drop reject stats generation
This commit is contained in:
@@ -129,26 +129,9 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
|
||||
}
|
||||
});
|
||||
|
||||
// Create reject stats
|
||||
const rejectDomainsStats: string[] = span
|
||||
.traceChild('create reject stats')
|
||||
.traceSyncFn(() => {
|
||||
const results = [];
|
||||
results.push('=== base ===');
|
||||
appendArrayInPlace(results, rejectOutput.getStatMap());
|
||||
results.push('=== extra ===');
|
||||
appendArrayInPlace(results, rejectExtraOutput.getStatMap());
|
||||
return results;
|
||||
});
|
||||
|
||||
return Promise.all([
|
||||
rejectOutput.write(),
|
||||
rejectExtraOutput.write(),
|
||||
compareAndWriteFile(
|
||||
span,
|
||||
rejectDomainsStats,
|
||||
path.join(OUTPUT_INTERNAL_DIR, 'reject-stats.txt')
|
||||
),
|
||||
compareAndWriteFile(
|
||||
span,
|
||||
appendArrayInPlace(
|
||||
|
||||
Reference in New Issue
Block a user