Prechádzať zdrojové kódy

消息队列配置优化

macro 2 rokov pred
rodič
commit
2bc0bea2ea

+ 2 - 2
mall-portal/src/main/java/com/macro/mall/portal/config/RabbitMqConfig.java

@@ -17,7 +17,7 @@ public class RabbitMqConfig {
      */
     @Bean
     DirectExchange orderDirect() {
-        return (DirectExchange) ExchangeBuilder
+        return ExchangeBuilder
                 .directExchange(QueueEnum.QUEUE_ORDER_CANCEL.getExchange())
                 .durable(true)
                 .build();
@@ -28,7 +28,7 @@ public class RabbitMqConfig {
      */
     @Bean
     DirectExchange orderTtlDirect() {
-        return (DirectExchange) ExchangeBuilder
+        return ExchangeBuilder
                 .directExchange(QueueEnum.QUEUE_TTL_ORDER_CANCEL.getExchange())
                 .durable(true)
                 .build();