diff --git a/src/index.ts b/src/index.ts index dfd625b9c7..f9d60f00c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,8 +76,7 @@ async function masterMain(): Promise { return; } - // Spawn workers - spawn(() => { + spawnWorkers(() => { Logger.info(chalk.bold.green(`Now listening on port ${config.port}`)); // Listen new workers @@ -168,10 +167,7 @@ async function init(): Promise { return warn ? InitResult.Warn : InitResult.Success; } -/** - * Spawn workers - */ -function spawn(callback: any): void { +function spawnWorkers(callback: any): void { // Count the machine's CPUs const cpuCount = os.cpus().length;