Parcourir la source

足迹记录mq时,单向发送,不等待mq响应

Chopper il y a 4 ans
Parent
commit
4c8375e861

+ 1 - 1
framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java

@@ -235,7 +235,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
         if (UserContext.getCurrentUser() != null) {
             FootPrint footPrint = new FootPrint(UserContext.getCurrentUser().getId(), goodsId, skuId);
             String destination = rocketmqCustomProperties.getGoodsTopic() + ":" + GoodsTagsEnum.VIEW_GOODS.name();
-            rocketMQTemplate.asyncSend(destination, footPrint, RocketmqSendCallbackBuilder.commonCallback());
+            rocketMQTemplate.sendOneWay(destination, footPrint);
         }
         return map;
     }