From 48f6f6edc9fc5e5b65799fe54a1a04b913c0a840 Mon Sep 17 00:00:00 2001 From: SukkaBot Date: Thu, 22 Sep 2022 16:15:13 +0000 Subject: [PATCH] deploy: 4e174a775d0e55a1bd72c37d2d64daf57319b1b3 --- Build/build-reject-domainset.js | 17 +++++++++++------ index.html | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Build/build-reject-domainset.js b/Build/build-reject-domainset.js index ac9c2a5fe..43ca0f597 100644 --- a/Build/build-reject-domainset.js +++ b/Build/build-reject-domainset.js @@ -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'); })(); diff --git a/index.html b/index.html index a0dd21d49..8d92751c7 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,7 @@

Sukka Surge Ruleset Server

Made by Sukka | Source @ GitHub | Licensed under AGPL-3.0

-

Last Updated: 2022-09-22T15:54:09.290Z

+

Last Updated: 2022-09-22T16:15:11.880Z