This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new f75fa335b1 [FIX] AmqpForwardAttribute should create its exchange
f75fa335b1 is described below

commit f75fa335b156e596a207db8e954eadd283f038bc
Author: Benoit TELLIER <[email protected]>
AuthorDate: Wed Sep 11 14:14:18 2024 +0200

    [FIX] AmqpForwardAttribute should create its exchange
---
 .../java/org/apache/james/transport/mailets/AmqpForwardAttribute.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/mailet/amqp/src/main/java/org/apache/james/transport/mailets/AmqpForwardAttribute.java
 
b/mailet/amqp/src/main/java/org/apache/james/transport/mailets/AmqpForwardAttribute.java
index a40509d1d3..1a8198dba2 100644
--- 
a/mailet/amqp/src/main/java/org/apache/james/transport/mailets/AmqpForwardAttribute.java
+++ 
b/mailet/amqp/src/main/java/org/apache/james/transport/mailets/AmqpForwardAttribute.java
@@ -142,7 +142,7 @@ public class AmqpForwardAttribute extends GenericMailet {
                 metricFactory, new NoopGaugeRegistry());
             reactorRabbitMQChannelPool.start();
             sender = reactorRabbitMQChannelPool.getSender();
-            sender.declareExchange(ExchangeSpecification.exchange(exchange));
+            
sender.declareExchange(ExchangeSpecification.exchange(exchange)).block();
         } catch (URISyntaxException e) {
             throw new RuntimeException(e);
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to