This commit is contained in:
Lemon
2025-07-02 11:54:57 +08:00
parent 883ebe7022
commit ba40605af7
5 changed files with 20 additions and 20 deletions

View File

@@ -126,14 +126,14 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
log.error("push发送命令失败, pileSn:{}", pileSn, cause);
// 异步删除Map中的保存关系(带关闭连接)
CompletableFuture.runAsync(() -> {
try {
// 删除Map中的保存关系
PileChannelEntity.deleteChannel(pileSn, ctx);
} catch (Exception e) {
log.error("异步删除、关闭连接 error", e);
}
}, executor);
// CompletableFuture.runAsync(() -> {
// try {
// // 删除Map中的保存关系
// PileChannelEntity.deleteChannel(pileSn, ctx);
// } catch (Exception e) {
// log.error("异步删除、关闭连接 error", e);
// }
// }, executor);
}
});
@@ -231,14 +231,14 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
log.error("push发送命令失败, pileSn:{}", pileSn, cause);
// 异步删除Map中的保存关系(带关闭连接)
CompletableFuture.runAsync(() -> {
try {
// 删除Map中的保存关系
PileChannelEntity.deleteChannel(pileSn, ctx);
} catch (Exception e) {
log.error("异步删除、关闭连接 error", e);
}
}, executor);
// CompletableFuture.runAsync(() -> {
// try {
// // 删除Map中的保存关系
// PileChannelEntity.deleteChannel(pileSn, ctx);
// } catch (Exception e) {
// log.error("异步删除、关闭连接 error", e);
// }
// }, executor);
}
});