From 0723ff928263bcc0e76d01c7c41e4f94021dc262 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 15 Jan 2024 22:42:02 +0800 Subject: [PATCH] feat: Enable immediate dial termination by reusing passed context in GetResolver (#1006) --- waku/v2/dnsdisc/resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/v2/dnsdisc/resolver.go b/waku/v2/dnsdisc/resolver.go index 8985b33b..3cb12a1a 100644 --- a/waku/v2/dnsdisc/resolver.go +++ b/waku/v2/dnsdisc/resolver.go @@ -14,7 +14,7 @@ func GetResolver(ctx context.Context, nameserver string) *net.Resolver { return &net.Resolver{ PreferGo: true, - Dial: func(ctx context.Context, network, address string) (net.Conn, error) { + Dial: func(_ context.Context, network, address string) (net.Conn, error) { d := net.Dialer{} return d.DialContext(ctx, network, net.JoinHostPort(nameserver, "53")) },