Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 7531819

Browse files
RH fixed, and weird TS errors ignored
1 parent ac267bc commit 7531819

File tree

4 files changed

+9974
-1072
lines changed

4 files changed

+9974
-1072
lines changed

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ fs.readFile(join(__dirname, 'blocklists/ADS.txt'), (err, data) => {
7171
const lines = data.toString().split('\n');
7272
for (let i in lines) blacklisted.push(lines[i]);
7373
});
74+
//@ts-ignore
75+
//we do @ts-ignore because numCPUs is inferred as string | number and breaks
7476
if (numCPUs > 0 && cluster.isPrimary) {
7577
console.log(debug(`Primary ${process.pid} is running`));
78+
//@ts-ignore
7679
for (let i = 0; i < numCPUs; i++) {
7780
cluster.fork().on('online', () => {
7881
console.log(debug2(`Worker ${i + 1} is online`));

0 commit comments

Comments
 (0)