refactor: remove default export for boot

This commit is contained in:
Norm 2022-12-11 14:42:55 -05:00
parent 768d9bbdfb
commit 030394b30d
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ const ev = new Xev();
/**
* Init process
*/
export default async function(): Promise<void> {
export async function boot(): Promise<void> {
process.title = `FoundKey (${cluster.isPrimary ? 'master' : 'worker'})`;
if (cluster.isPrimary || envOption.disableClustering) {

View file

@ -3,7 +3,7 @@
*/
import { EventEmitter } from 'node:events';
import boot from '@/boot/index.js';
import { boot } from '@/boot/index.js';
Error.stackTraceLimit = Infinity;
EventEmitter.defaultMaxListeners = 128;