This commit is contained in:
Aya Morisawa 2017-01-03 05:17:21 +09:00
parent 6112751053
commit 70b1ffc9c0

View file

@ -43,16 +43,16 @@ main();
*/ */
function main(): void { function main(): void {
if (cluster.isMaster) { if (cluster.isMaster) {
master(); masterMain();
} else { } else {
worker(); workerMain();
} }
} }
/** /**
* Init master proccess * Init master proccess
*/ */
async function master(): Promise<void> { async function masterMain(): Promise<void> {
let initResult: InitResult; let initResult: InitResult;
try { try {
@ -103,7 +103,7 @@ async function master(): Promise<void> {
/** /**
* Init worker proccess * Init worker proccess
*/ */
function worker(): void { function workerMain(): void {
// Register config // Register config
global.config = config; global.config = config;