(ctx context.Context, host string)
| 26 | } |
| 27 | |
| 28 | func (r *timeoutResolver) LookupIPAddr(ctx context.Context, host string) (addrs []net.IPAddr, err error) { |
| 29 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
| 30 | defer cancel() |
| 31 | |
| 32 | return r.lookup.LookupIPAddr(ctx, host) |
| 33 | } |
| 34 | |
| 35 | func (r *timeoutResolver) LookupPort(ctx context.Context, network, service string) (port int, err error) { |
| 36 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
nothing calls this directly
no test coverage detected