(ctx context.Context, host string)
| 19 | } |
| 20 | |
| 21 | func (r *timeoutResolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) { |
| 22 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
| 23 | defer cancel() |
| 24 | |
| 25 | return r.lookup.LookupHost(ctx, host) |
| 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) |
nothing calls this directly
no test coverage detected