File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,8 @@ export const initAMQP = () => {
27
27
channel . assertExchange ( exchangeName , 'topic' , {
28
28
durable : true ,
29
29
autoDelete : false ,
30
- arguments : {
31
- queueType : 'quorum' ,
32
- } ,
33
30
} ) ;
31
+
34
32
amqpChannel = channel ;
35
33
36
34
logger . info ( 'AMQP initialized' ) ;
Original file line number Diff line number Diff line change @@ -597,14 +597,11 @@ export class WAStartupService {
597
597
598
598
if ( amqp ) {
599
599
if ( Array . isArray ( rabbitmqLocal ) && rabbitmqLocal . includes ( we ) ) {
600
- const exchangeName = 'evolution_exchange' ;
600
+ const exchangeName = this . instanceName ?? 'evolution_exchange' ;
601
601
602
602
amqp . assertExchange ( exchangeName , 'topic' , {
603
603
durable : true ,
604
604
autoDelete : false ,
605
- arguments : {
606
- queueType : 'quorum' ,
607
- } ,
608
605
} ) ;
609
606
610
607
const queueName = `${ this . instanceName } .${ event } ` ;
@@ -613,7 +610,7 @@ export class WAStartupService {
613
610
durable : true ,
614
611
autoDelete : false ,
615
612
arguments : {
616
- queueType : 'quorum' ,
613
+ 'x-queue-type' : 'quorum' ,
617
614
} ,
618
615
} ) ;
619
616
You can’t perform that action at this time.
0 commit comments