This commit is contained in:
邹宗楠
2023-03-16 15:24:21 +08:00
parent b4bac4ea17
commit a0c528d299
4 changed files with 23 additions and 58 deletions

View File

@@ -192,7 +192,7 @@ func (t *TcpClient) buildAllMap(key string) {
defer t.Unlock()
t.MsgMap[key] = make(chan *model.PrintMsg, 1024)
t.CallBackMap[key] = make(chan string, 1024)
t.TimeoutMap[key] = make(chan bool, 64)
t.TimeoutMap[key] = make(chan bool, 1)
}
func (t *TcpClient) getPrintStatus(key string) int {