|
@@ -270,7 +270,7 @@ public class RabbitMqListener {
|
|
|
|
|
|
if(!ObjectUtils.isEmpty(buildLog.getMessageId())){
|
|
|
// 设置消息id幂等性,防止消息重复消费
|
|
|
- boolean lock = redisLockUtil.lock(SysConstants.SCENE_BUILDING + buildLog.getMessageId(), SysConstants.modelTimeOut * 3600);
|
|
|
+ boolean lock = redisLockUtil.lock(SysConstants.SCENE_MESSAGE_BUILDING + buildLog.getMessageId(), SysConstants.modelTimeOut * 3600);
|
|
|
if (!lock) {
|
|
|
log.error("服务:{},消息重复消费:{}", SysConstants.hostName, buildLog.getMessageId());
|
|
|
throw new BuildException(ModelingBuildStatus.REPEAT);
|