Remove the node freelist in the pool.
(id proto.NodeID)
| 183 | |
| 184 | // Remove the node freelist in the pool. |
| 185 | func (p *ClientPool) Remove(id proto.NodeID) { |
| 186 | v, ok := p.nodeFreeLists.Load(id) |
| 187 | if ok { |
| 188 | _ = v.(*freelist).close() |
| 189 | p.nodeFreeLists.Delete(id) |
| 190 | } |
| 191 | return |
| 192 | } |
| 193 | |
| 194 | // Close closes all FreeLists in the pool. |
| 195 | func (p *ClientPool) Close() error { |