@autofleet/rabbit 2.4.0 → 2.4.1
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ class RabbitMq {
|
|
|
145
145
|
const username = process.env.RABBITMQ_USERNAME || 'guest';
|
|
146
146
|
const password = process.env.RABBITMQ_PASSWORD || 'guest';
|
|
147
147
|
const host = process.env.RABBITMQ_SERVICE_HOST || '';
|
|
148
|
-
const connection = await amqp_connection_manager_1.connect([`amqp://${username}:${password}@${host}`]);
|
|
148
|
+
const connection = await amqp_connection_manager_1.connect([`amqp://${username}:${password}@${host}?heartbeat=60`]);
|
|
149
149
|
this.connection = connection;
|
|
150
150
|
this.connection.on('disconnect', ({ err }) => {
|
|
151
151
|
this.exchanges = {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -234,7 +234,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
234
234
|
const username: string = process.env.RABBITMQ_USERNAME || 'guest';
|
|
235
235
|
const password: string = process.env.RABBITMQ_PASSWORD || 'guest';
|
|
236
236
|
const host: string = process.env.RABBITMQ_SERVICE_HOST || '';
|
|
237
|
-
const connection: AmqpConnectionManager = await connect([`amqp://${username}:${password}@${host}`]);
|
|
237
|
+
const connection: AmqpConnectionManager = await connect([`amqp://${username}:${password}@${host}?heartbeat=60`]);
|
|
238
238
|
this.connection = connection;
|
|
239
239
|
this.connection.on('disconnect',
|
|
240
240
|
({ err }) => {
|