Code optimization

This commit is contained in:
刘河
2019-03-23 22:19:59 +08:00
parent efa341c7e8
commit b189fb1b6e
260 changed files with 50746 additions and 851 deletions

View File

@@ -49,12 +49,6 @@ retry:
s.processor(c)
}
func (s *TRPClient) Close() {
s.tunnel.Close()
s.signal.Close()
s.ticker.Stop()
}
//处理
func (s *TRPClient) processor(c *conn.Conn) {
s.signal = c
@@ -232,3 +226,9 @@ loop:
}
}
}
func (s *TRPClient) Close() {
s.tunnel.Close()
s.signal.Close()
s.ticker.Stop()
}