mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 03:03:09 +02:00
✨
This commit is contained in:
parent
513dd40a7b
commit
72663bc2b5
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue