deploy: 4e174a775d0e55a1bd72c37d2d64daf57319b1b3

This commit is contained in:
SukkaBot
2022-09-22 16:15:13 +00:00
parent 0c547c7a23
commit 48f6f6edc9
2 changed files with 12 additions and 7 deletions

View File

@@ -225,7 +225,8 @@ const threads = isCI ? cpuCount : cpuCount / 2;
previousSize = domainSets.size;
// Dedupe domainSets
console.log(`Start deduping! (${previousSize})`);
console.time(`* Dedupe from covered subdomain`);
const START_TIME = Date.now();
const piscina = new Piscina({
filename: pathResolve(__dirname, 'worker/build-reject-domainset-worker.js'),
@@ -264,13 +265,17 @@ const threads = isCI ? cpuCount : cpuCount / 2;
})
});
console.timeEnd(`* Dedupe from covered subdomain`);
console.log(`* Dedupe from covered subdomain - ${(Date.now() - START_TIME) / 1000}s`);
console.log(`Deduped ${previousSize - domainSets.size} rules!`);
await fsPromises.writeFile(
pathResolve(__dirname, '../List/domainset/reject.conf'),
`${[...domainSets].join('\n')}\n`,
{ encoding: 'utf-8' });
await Promise.all([
fsPromises.writeFile(
pathResolve(__dirname, '../List/domainset/reject.conf'),
`${[...domainSets].join('\n')}\n`,
{ encoding: 'utf-8' }
),
piscina.destroy()
])
console.timeEnd('Total Time - build-reject-domain-set');
})();

View File

@@ -24,7 +24,7 @@
<main class="container">
<h1>Sukka Surge Ruleset Server</h1>
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
<p>Last Updated: 2022-09-22T15:54:09.290Z</p>
<p>Last Updated: 2022-09-22T16:15:11.880Z</p>
<hr>
<br>
<ul>