This commit is contained in:
邹宗楠
2023-03-23 15:38:53 +08:00
parent 9a05bc9145
commit 7863aa3f56

View File

@@ -181,7 +181,6 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
go func() {
for {
if t.TimeoutMap[printNo] == true {
time.AfterFunc(2*time.Second, func() {
timeNow := time.Now()
timeStart := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, timeNow.Location())
timeEnd := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 23, 59, 59, 0, timeNow.Location())
@@ -195,7 +194,6 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
}
}
}
})
} else {
globals.SugarLogger.Debugf("HandleTcpMessages timeout")
return