From 8ffd05496a05ecc1fcdb9817b48d10166a36b10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 24 Feb 2023 16:27:19 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index db35f2273..b26f10bf0 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -34,8 +34,6 @@ func ListenTcp() { } } -var clientMap = make(map[string]*TcpClient, 0) - func (t *TcpClient) handleConn(c net.Conn) { if c == nil { globals.SugarLogger.Debugf("conn is nil") @@ -254,16 +252,8 @@ func (t *TcpClient) doPrint(key string) (err error) { close(t.TimeoutMap[key]) } else { if c != nil { - //encryption := "" - //for _, v := range data { - // encryption += fmt.Sprintf("%d", v) - //} - //printMsg.ContentEncryption = encryption - // - //dao.UpdateEntity(db, printMsg, "ContentEncryption") if _, err = c.Write(data); err != nil { globals.SugarLogger.Debugf("handleTcpMessages err [%v]", err) - //t.delConn(printMsg.PrintNo) close(t.TimeoutMap[key]) } else { //等待回调