This commit is contained in:
Aya Morisawa 2017-01-03 05:17:21 +09:00
parent 513dd40a7b
commit 72663bc2b5
1 changed files with 4 additions and 4 deletions

View File

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