(c net.Conn)
| 58 | } |
| 59 | |
| 60 | func (cs *connSet) Remove(c net.Conn) { |
| 61 | cs.Lock() |
| 62 | defer cs.Unlock() |
| 63 | |
| 64 | delete(cs.conns, c.RemoteAddr().String()) |
| 65 | } |
| 66 | |
| 67 | func (cs *connSet) RemoveAddr(addr net.Addr) { |
| 68 | cs.Lock() |
nothing calls this directly
no test coverage detected