mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API
This commit is contained in:
parent
6f5c020b7e
commit
e0a8c5f398
1 changed files with 1 additions and 2 deletions
|
|
@ -214,8 +214,7 @@ func dnsClient(ctx *cli.Context) *dnsdisc.Client {
|
||||||
if commandHasFlag(ctx, dnsTimeoutFlag) {
|
if commandHasFlag(ctx, dnsTimeoutFlag) {
|
||||||
cfg.Timeout = ctx.Duration(dnsTimeoutFlag.Name)
|
cfg.Timeout = ctx.Duration(dnsTimeoutFlag.Name)
|
||||||
}
|
}
|
||||||
c, _ := dnsdisc.NewClient(cfg) // cannot fail because no URLs given
|
return dnsdisc.NewClient(cfg)
|
||||||
return c
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// There are two file formats for DNS node trees on disk:
|
// There are two file formats for DNS node trees on disk:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue