@autofleet/rabbit 3.2.16 → 3.2.17-beta.2

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();
371
+ const channel = await this.assertChannel({ force: true });
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);
@@ -415,7 +415,6 @@ class RabbitMq {
415
415
  if (messageAcked) {
416
416
  return;
417
417
  }
418
- debug('rabbit localAck', { messageAcked, uniqueId, deliveryTag: msg.fields.deliveryTag });
419
418
  messageAcked = true;
420
419
  return this.ack(confirmChannel, msg, true, releaseLock)(msg);
421
420
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.2.16",
3
+ "version": "3.2.17-beta.2",
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();
524
+ const channel = await this.assertChannel({ force: true });
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);
@@ -574,7 +574,6 @@ class RabbitMq implements IAfRabbitMq {
574
574
  if (messageAcked) {
575
575
  return;
576
576
  }
577
- debug('rabbit localAck', { messageAcked, uniqueId, deliveryTag: msg.fields.deliveryTag });
578
577
  messageAcked = true;
579
578
  return this.ack(confirmChannel, msg, true, releaseLock)(msg);
580
579
  };