This commit is contained in:
suyl
2021-08-02 14:35:34 +08:00
parent 18f9feb2de
commit 882d8eee59
2 changed files with 37 additions and 18 deletions

View File

@@ -184,6 +184,16 @@ func (t *TcpClient) getPrintConn(key string) net.Conn {
}
}
func (t *TcpClient) getPrintStatusTime(key string) time.Time {
t.RLock()
defer t.RUnlock()
if t.Clients[key] != nil {
return t.Clients[key].StatusTime
} else {
return utils.ZeroTimeValue
}
}
func (t *TcpClient) isExistMsg(key string) bool {
t.RLock()
defer t.RUnlock()