PoolAddrFunc is an implementation of PoolFactory for functions that accept an instance address.
func(addr string) (PoolClient, error)
| 43 | // PoolAddrFunc is an implementation of PoolFactory for functions that |
| 44 | // accept an instance address. |
| 45 | type PoolAddrFunc func(addr string) (PoolClient, error) |
| 46 | |
| 47 | func (f PoolAddrFunc) FromInstance(inst ring.InstanceDesc) (PoolClient, error) { |
| 48 | return f(inst.Addr) |
no outgoing calls
no test coverage detected