mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-21 23:30:22 +08:00
Optimize: Some lint issues fixed.
This commit is contained in:
@@ -114,10 +114,11 @@ func (s *Server) Address() net.Addr {
|
||||
return s.ln.Addr()
|
||||
}
|
||||
|
||||
// ActiveClientConn returns active connections.
|
||||
func (s *Server) ActiveClientConn() []net.Conn {
|
||||
var result []net.Conn
|
||||
|
||||
for clientConn, _ := range s.activeConn {
|
||||
for clientConn := range s.activeConn {
|
||||
result = append(result, clientConn)
|
||||
}
|
||||
return result
|
||||
|
Reference in New Issue
Block a user