Added REDIS_URL to .env.example and use this in queuManager, removed & commented debug code

This commit is contained in:
2024-09-21 22:00:08 +02:00
parent fd8cefd0db
commit 66cbdec5b6
7 changed files with 21 additions and 35 deletions

View File

@ -16,7 +16,6 @@ import { Dirent } from 'node:fs'
import { appLogger, watchLogs } from './utilities/logger'
import CharacterManager from './managers/characterManager'
import QueueManager from './managers/queueManager'
import CharacterListener from './listeners/zone/characterListener'
export class Server {
private readonly app: Application
@ -88,7 +87,6 @@ export class Server {
private async handleConnection(socket: TSocket) {
const eventsPath = path.join(__dirname, 'events')
try {
new CharacterListener(this.io, socket).listen();
await this.loadEventHandlers(eventsPath, socket)
} catch (error: any) {
appLogger.error(`Failed to load event handlers: ${error.message}`)