cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API

This commit is contained in:
Felix Lange 2019-12-07 15:16:04 +01:00
parent 6f5c020b7e
commit e0a8c5f398

View file

@ -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: