GetClientFor gets the client for the specified address. If it does not exist it will make a new client for that address.
(addr string)
| 132 | // GetClientFor gets the client for the specified address. If it does not exist |
| 133 | // it will make a new client for that address. |
| 134 | func (p *Pool) GetClientFor(addr string) (PoolClient, error) { |
| 135 | return p.GetClientForInstance(ring.InstanceDesc{Addr: addr}) |
| 136 | } |
| 137 | |
| 138 | // GetClientForInstance gets the client for the specified ring member. If it does not exist |
| 139 | // it will make a new client for that instance. |