足迹记录mq时,单向发送,不等待mq响应
This commit is contained in:
parent
d06b5ceb89
commit
4c8375e861
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user