This commit is contained in:
邹宗楠
2022-12-16 11:20:05 +08:00
parent c75d1a66c5
commit d8a223e360

View File

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