This commit is contained in:
邹宗楠
2023-03-16 15:39:06 +08:00
parent c0c154e895
commit be1d4be19e

View File

@@ -172,7 +172,6 @@ func (t *TcpClient) changePrintMsg(data string, orderNo int64, printNo string) (
}
func (t *TcpClient) HandleTcpMessages(printNo string) {
fmt.Println("============:", t.getTimeOut(printNo))
var (
db = dao.GetDB()
offset, pageSize = 0, 10
@@ -318,10 +317,8 @@ func (t *TcpClient) doPrint(key string) (err error) {
//检测心跳
func (t *TcpClient) HandleCheckTcpHeart(key string) {
globals.SugarLogger.Debugf("HandleCheckTcpHeart begin key: %s", key)
go func() {
for {
fmt.Println("============:", t.getTimeOut(key))
select {
case <-t.TimeoutMap[key]:
t.getClients(key).C.Close()