Get returns existing freelist to the node, if not exist try best to create one.
(id proto.NodeID)
| 164 | |
| 165 | // Get returns existing freelist to the node, if not exist try best to create one. |
| 166 | func (p *ClientPool) Get(id proto.NodeID) (cli Client, err error) { |
| 167 | list, _ := p.loadFreeList(id) |
| 168 | return list.get() |
| 169 | } |
| 170 | |
| 171 | // GetEx returns a client with an one-off connection if it's anonymous, |
| 172 | // otherwise returns existing freelist with Get. |
no test coverage detected