Update models more
This commit is contained in:
@@ -13,8 +13,8 @@ export class MS {
|
||||
|
||||
async connect(amqpUri) {
|
||||
this.connection = await amqp.connect(amqpUri)
|
||||
this.connection.on('error', () => {
|
||||
this.log.error(`RabbitMQ has gone, shutting down service`)
|
||||
this.connection.on('error', (err) => {
|
||||
this.log.error(`${err}. Shutting down service.`)
|
||||
process.exit(-1)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user