MCPcopy Create free account
hub / github.com/Shopify/goose / NewTimeoutResolver

Function NewTimeoutResolver

resolver/timeout_resolver.go:14–19  ·  view source on GitHub ↗
(lookup Resolver, timeout time.Duration)

Source from the content-addressed store, hash-verified

12}
13
14func NewTimeoutResolver(lookup Resolver, timeout time.Duration) Resolver {
15 return &timeoutResolver{
16 lookup: lookup,
17 timeout: timeout,
18 }
19}
20
21func (r *timeoutResolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
22 ctx, cancel := context.WithTimeout(ctx, r.timeout)

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected