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

This commit is contained in:
Chopper 2021-07-05 16:41:39 +08:00
parent d06b5ceb89
commit 4c8375e861

View File

@ -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;
}