@seidor-cloud-produtos/orbit-backend-lib 2.0.116 → 2.0.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -230,7 +230,7 @@ class AmqpQueue {
|
|
|
230
230
|
}
|
|
231
231
|
try {
|
|
232
232
|
const promises = [
|
|
233
|
-
this.publishToServerWaitForConfirms(exchangeName, domainEvent, buildedConfigs)
|
|
233
|
+
this.publishToServerWaitForConfirms(exchangeName, domainEvent, buildedConfigs)
|
|
234
234
|
];
|
|
235
235
|
if (this.socketOptions?.timeoutSeconds) {
|
|
236
236
|
promises.push(AmqpQueue.delayOperation(this.socketOptions.timeoutSeconds));
|
|
@@ -349,12 +349,6 @@ class AmqpQueue {
|
|
|
349
349
|
async treatReconnection(vHost) {
|
|
350
350
|
this.logger.info('⛔ Connection Error!!');
|
|
351
351
|
this.logger.info(`🔄 Try connection to the vHost ${vHost}`);
|
|
352
|
-
try {
|
|
353
|
-
await this.close();
|
|
354
|
-
}
|
|
355
|
-
catch (error) {
|
|
356
|
-
this.logger.error('⛔ Error while closing the connection');
|
|
357
|
-
}
|
|
358
352
|
AmqpQueue.instance = await this.connect(vHost);
|
|
359
353
|
await this.reconnectionChannels();
|
|
360
354
|
await this.publishMessagesOfMemory();
|