1
0
forked from noxious/server

QueueMangr. async.

This commit is contained in:
Dennis Postma 2024-09-21 22:15:06 +02:00
parent 8fc194933c
commit d2c52ea0c0
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import IORedis from 'ioredis';
import { Job, Queue, Worker } from 'bullmq'
import CharacterJoin from '../events/zone/characterJoin'
import config from '../utilities/config'
class QueueManager {
@ -8,7 +7,7 @@ class QueueManager {
public queue!: Queue;
public worker!: Worker;
public boot() {
public async boot() {
this.connection = new IORedis(config.REDIS_URL, {
maxRetriesPerRequest: null
});

View File

@ -64,7 +64,7 @@ export class Server {
// Load user manager
await UserManager.boot()
QueueManager.boot();
await QueueManager.boot();
// Load zoneEditor manager
await ZoneManager.boot()