mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 20:03:10 +02:00
✨
This commit is contained in:
parent
72663bc2b5
commit
6f535faa4d
1 changed files with 2 additions and 6 deletions
|
@ -76,8 +76,7 @@ async function masterMain(): Promise<void> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spawn workers
|
spawnWorkers(() => {
|
||||||
spawn(() => {
|
|
||||||
Logger.info(chalk.bold.green(`Now listening on port ${config.port}`));
|
Logger.info(chalk.bold.green(`Now listening on port ${config.port}`));
|
||||||
|
|
||||||
// Listen new workers
|
// Listen new workers
|
||||||
|
@ -168,10 +167,7 @@ async function init(): Promise<InitResult> {
|
||||||
return warn ? InitResult.Warn : InitResult.Success;
|
return warn ? InitResult.Warn : InitResult.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
function spawnWorkers(callback: any): void {
|
||||||
* Spawn workers
|
|
||||||
*/
|
|
||||||
function spawn(callback: any): void {
|
|
||||||
// Count the machine's CPUs
|
// Count the machine's CPUs
|
||||||
const cpuCount = os.cpus().length;
|
const cpuCount = os.cpus().length;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue