mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Refactoring
This commit is contained in:
parent
bd6f795f4f
commit
44a5d732a3
@ -4,9 +4,6 @@
|
|||||||
|
|
||||||
Error.stackTraceLimit = Infinity;
|
Error.stackTraceLimit = Infinity;
|
||||||
|
|
||||||
/**
|
|
||||||
* Module dependencies
|
|
||||||
*/
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as cluster from 'cluster';
|
import * as cluster from 'cluster';
|
||||||
@ -141,9 +138,7 @@ function spawnWorkers(onComplete: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// On all workers started
|
// On all workers started
|
||||||
progress.on('complete', () => {
|
progress.on('complete', onComplete);
|
||||||
onComplete();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listen new workers
|
// Listen new workers
|
||||||
|
Loading…
Reference in New Issue
Block a user