From 2ac943b4b54c168501ffc7c5a39e3484a8b0c941 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期六, 31 八月 2024 10:31:52 +0800
Subject: [PATCH] 空板入库下发输送线命令后等待一秒,避免下次线程执行过快plc还未写入
---
src/main/java/com/zy/core/netty/OnlineServer.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/core/netty/OnlineServer.java b/src/main/java/com/zy/core/netty/OnlineServer.java
index f6e68ec..b81091f 100644
--- a/src/main/java/com/zy/core/netty/OnlineServer.java
+++ b/src/main/java/com/zy/core/netty/OnlineServer.java
@@ -1,6 +1,7 @@
package com.zy.core.netty;
+import com.zy.common.utils.News;
import com.zy.core.netty.properties.TcpProperties;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator;
@@ -66,7 +67,7 @@
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);
- log.info("TCP server started successfully, port锛歿}", tcpProperties.getPort());
+ News.info("TCP server started successfully, port锛歿}", tcpProperties.getPort());
channel = bootstrap.bind(tcpProperties.getPort()).sync().channel();
}
@@ -86,7 +87,7 @@
if (workerGroup != null) {
workerGroup.shutdownGracefully();
}
- log.info("TCP server stopped successfully, port: {}", tcpProperties.getPort());
+ News.info("TCP server stopped successfully, port: {}", tcpProperties.getPort());
}
}
--
Gitblit v1.9.1