1
This commit is contained in:
@@ -151,7 +151,7 @@ func (t *TcpClient) delConn(key string) {
|
||||
}
|
||||
|
||||
//添加到连接池中
|
||||
func (t *TcpClient) addConn(c net.Conn, key string, status int) {
|
||||
func addConn(c net.Conn, t *TcpClient, key string, status int) {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
t.Clients[key] = &PrintInfo{
|
||||
@@ -190,7 +190,7 @@ func (t *TcpClient) getTimeOut(key string) bool {
|
||||
return t.TimeoutMap[key]
|
||||
}
|
||||
|
||||
func (t *TcpClient) buildAllMap(key string) {
|
||||
func buildAllMap(t *TcpClient, key string) {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
t.MsgMap[key] = make(chan *model.PrintMsg, 1024)
|
||||
|
||||
Reference in New Issue
Block a user