From e0a8c5f398175f49df3b2b417b8691c5ecf48bcc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 7 Dec 2019 15:16:04 +0100 Subject: [PATCH] cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API --- cmd/devp2p/dnscmd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/devp2p/dnscmd.go b/cmd/devp2p/dnscmd.go index eb15764b04..f245104053 100644 --- a/cmd/devp2p/dnscmd.go +++ b/cmd/devp2p/dnscmd.go @@ -214,8 +214,7 @@ func dnsClient(ctx *cli.Context) *dnsdisc.Client { if commandHasFlag(ctx, dnsTimeoutFlag) { cfg.Timeout = ctx.Duration(dnsTimeoutFlag.Name) } - c, _ := dnsdisc.NewClient(cfg) // cannot fail because no URLs given - return c + return dnsdisc.NewClient(cfg) } // There are two file formats for DNS node trees on disk: