diff --git a/src/index.ts b/src/index.ts index 2a1872f8e0..dfd625b9c7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,16 +43,16 @@ main(); */ function main(): void { if (cluster.isMaster) { - master(); + masterMain(); } else { - worker(); + workerMain(); } } /** * Init master proccess */ -async function master(): Promise { +async function masterMain(): Promise { let initResult: InitResult; try { @@ -103,7 +103,7 @@ async function master(): Promise { /** * Init worker proccess */ -function worker(): void { +function workerMain(): void { // Register config global.config = config;