refactor: remove default export for boot
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Norm 2022-12-11 14:42:55 -05:00
parent 768d9bbdfb
commit 030394b30d
Signed by: 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 * Init process
*/ */
export default async function(): Promise<void> { export async function boot(): Promise<void> {
process.title = `FoundKey (${cluster.isPrimary ? 'master' : 'worker'})`; process.title = `FoundKey (${cluster.isPrimary ? 'master' : 'worker'})`;
if (cluster.isPrimary || envOption.disableClustering) { if (cluster.isPrimary || envOption.disableClustering) {

View file

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