@autofleet/rabbit 3.2.17-beta.2 → 3.2.17
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
|
@@ -368,7 +368,7 @@ class RabbitMq {
|
|
|
368
368
|
}
|
|
369
369
|
logger_1.default.info(`rabbit: Consuming with lock from queue ${queue} with lockTimeout: ${lockTimeout}ms`);
|
|
370
370
|
}
|
|
371
|
-
const channel = await this.
|
|
371
|
+
const channel = await this.getNewChannel({});
|
|
372
372
|
return channel.addSetup(async (confirmChannel) => {
|
|
373
373
|
await confirmChannel.assertQueue(queue, options ? { messageTtl: options.messageTtl } : undefined);
|
|
374
374
|
await confirmChannel.prefetch(limit, true);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -521,7 +521,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
521
521
|
}
|
|
522
522
|
logger.info(`rabbit: Consuming with lock from queue ${queue} with lockTimeout: ${lockTimeout}ms`);
|
|
523
523
|
}
|
|
524
|
-
const channel = await this.
|
|
524
|
+
const channel = await this.getNewChannel({});
|
|
525
525
|
return channel.addSetup(async (confirmChannel: ConfirmChannel) => {
|
|
526
526
|
await confirmChannel.assertQueue(queue, options ? { messageTtl: options.messageTtl } : undefined);
|
|
527
527
|
await confirmChannel.prefetch(limit, true);
|