This commit is contained in:
邹宗楠
2024-07-10 11:26:11 +08:00
parent 5530ab4d01
commit 28aea06a4c
2 changed files with 0 additions and 9 deletions

View File

@@ -105,10 +105,6 @@ func handleConn(c net.Conn) error {
c.Write([]byte("ok"))
return err
}
if printNo == "120220915001467" {
globals.SugarLogger.Debugf("=========heartbeat : %s", utils.Format4Output(heartbeat, false))
globals.SugarLogger.Debugf("=========callback : %s", utils.Format4Output(callback, false))
}
if heartbeat {
// 证明是心跳
Heartbeat(c, t, data, printNo)

View File

@@ -642,11 +642,6 @@ func Heartbeat(c net.Conn, t *TcpClient, data string, printNo string) {
//4、读打印channel并打印并切等待回调channel中的消息
//5、修改数据库中打印机状态没在连接池中说明是重新连接的
//6、监听心跳时间超过1分多钟就clear掉
if printNo == "120220915001467" {
globals.SugarLogger.Debugf("==%s", utils.Format4Output(t, false))
globals.SugarLogger.Debugf("=msgMap=%s", utils.Format4Output(t.MsgMap, false))
globals.SugarLogger.Debugf("=bool=%s", utils.Format4Output(t.getClients(printNo) == nil, false))
}
if t.getClients(printNo) == nil {
addConn(c, t, printNo, status)
buildAllMap(t, printNo)