(ctx context.Context, network, service string)
| 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) |
| 37 | defer cancel() |
| 38 | |
| 39 | return r.lookup.LookupPort(ctx, network, service) |
| 40 | } |
| 41 | |
| 42 | func (r *timeoutResolver) LookupCNAME(ctx context.Context, host string) (cname string, err error) { |
| 43 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
nothing calls this directly
no test coverage detected