This commit is contained in:
邹宗楠
2022-12-29 16:25:18 +08:00
parent 22e81eb28a
commit 96129c6e31
2 changed files with 9 additions and 2 deletions

View File

@@ -219,6 +219,13 @@ func (t *TcpClient) getPrintStatusTime(key string) time.Time {
}
}
// 获取连接对象
func (t *TcpClient) getClients(key string) *PrintInfo {
t.RLock()
defer t.RUnlock()
return t.Clients[key]
}
func (t *TcpClient) isExistMsg(key string) bool {
t.RLock()
defer t.RUnlock()