@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 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.assertChannel({ force: true });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.2.17-beta.2",
3
+ "version": "3.2.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
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.assertChannel({ force: true });
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);