Merge branch 'server_five' of https://gitea.qinmian.online/five-groups/five-groups-couplet into server_five_liuyunhu

server_five_liuyunhu
liuyunhu 2024-04-06 10:56:16 +08:00
commit 9b0121446a
2 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,6 @@ public class FenceConsumer {
log.error("消息已丢失,已再次传入的信息是:【{}】", fenceUpdateRequest); log.error("消息已丢失,已再次传入的信息是:【{}】", fenceUpdateRequest);
channel.basicNack(deliveryTag, true, false); channel.basicNack(deliveryTag, true, false);
} }
} }

View File

@ -110,11 +110,12 @@ public class ModelMessage {
IncidentService incidentService = SpringUtils.getBean(string); IncidentService incidentService = SpringUtils.getBean(string);
incidentService.incident(msgData); incidentService.incident(msgData);
} }
try { // 不睡眠,他们也会主动拉取数据,不会影响其他服务
Thread.sleep(1000); // try {
} catch (InterruptedException e) { // Thread.sleep(1000);
throw new RuntimeException(e); // } catch (InterruptedException e) {
} // throw new RuntimeException(e);
// }
} }
} }