(addr string)
| 83 | } |
| 84 | |
| 85 | func (p *Pool) fromCache(addr string) (PoolClient, bool) { |
| 86 | p.RLock() |
| 87 | defer p.RUnlock() |
| 88 | client, ok := p.clients[addr] |
| 89 | return client, ok |
| 90 | } |
| 91 | |
| 92 | // GetClientFor gets the client for the specified address. If it does not exist it will make a new client |
| 93 | // at that address |
no outgoing calls
no test coverage detected