mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 17:59:05 +01:00
✨
This commit is contained in:
parent
6112751053
commit
70b1ffc9c0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user