Remove disconnects and removes the pool for addr. It is a no-op if addr is not in the pool. Used to clean up stale connections after an address change.
(addr string)
| 127 | // Remove disconnects and removes the pool for addr. It is a no-op if addr is |
| 128 | // not in the pool. Used to clean up stale connections after an address change. |
| 129 | func (p *Pools) Remove(addr string) { |
| 130 | p.remove(addr) |
| 131 | } |
| 132 | |
| 133 | func (p *Pools) remove(addr string) { |
| 134 | p.Lock() |