remove unnecessary asynchronous logic in index

This commit is contained in:
AlecM33
2023-08-17 12:39:56 -04:00
parent be68f165b3
commit e6a9d61220
2 changed files with 7 additions and 10 deletions

View File

@@ -30,8 +30,7 @@ class EventManager {
url: process.env.REDIS_URL
});
this.publisher.on('error', (e) => {
this.logger.error('REDIS PUBLISHER CLIENT ERROR:', e);
throw new Error('UNABLE TO CREATE PUBLISHER CLIENT because: ' + e);
throw new Error('PUBLISHER CLIENT FAILED because: ' + e);
});
try {
await this.publisher.connect();