@autofleet/rabbit 3.4.0-beta.10 → 3.4.0-beta.11
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 +4 -4
- package/package.json +1 -1
- package/src/index.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -486,10 +486,10 @@ class RabbitMq {
|
|
|
486
486
|
// Used by the microservices to consume messages from the queue
|
|
487
487
|
async consume(queue, callback, options) {
|
|
488
488
|
// TODO: [QUORUM-PHASE-3] Use only the implementation of consumeNew and delete consumeNew and consumeOld
|
|
489
|
-
if (options?.isQuorumQueue !== false) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
489
|
+
// if (options?.isQuorumQueue !== false) {
|
|
490
|
+
// await this.assertVHost();
|
|
491
|
+
// await this.consumeNew(queue, callback, options);
|
|
492
|
+
// }
|
|
493
493
|
await this.consumeOld(queue, callback, options);
|
|
494
494
|
}
|
|
495
495
|
// TODO: [QUORUM-PHASE-3] Delete consumeNew we do not use it anymore
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -692,10 +692,10 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
692
692
|
// Used by the microservices to consume messages from the queue
|
|
693
693
|
async consume(queue: string, callback: CallbackFunction, options?: ConsumeOptions): Promise<any> {
|
|
694
694
|
// TODO: [QUORUM-PHASE-3] Use only the implementation of consumeNew and delete consumeNew and consumeOld
|
|
695
|
-
if (options?.isQuorumQueue !== false) {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
}
|
|
695
|
+
// if (options?.isQuorumQueue !== false) {
|
|
696
|
+
// await this.assertVHost();
|
|
697
|
+
// await this.consumeNew(queue, callback, options);
|
|
698
|
+
// }
|
|
699
699
|
|
|
700
700
|
await this.consumeOld(queue, callback, options);
|
|
701
701
|
}
|