Merge pull request #3360 from filecoin-project/fix/dont-fail-drand-dns
Don't fail if could not resolve drand dnsaddr
This commit is contained in:
commit
010e32d778
@ -94,7 +94,13 @@ func BuiltinBootstrap() (dtypes.BootstrapPeers, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func DrandBootstrap(d dtypes.DrandConfig) (dtypes.DrandBootstrap, error) {
|
func DrandBootstrap(d dtypes.DrandConfig) (dtypes.DrandBootstrap, error) {
|
||||||
return addrutil.ParseAddresses(context.TODO(), d.Relays)
|
// TODO: retry resolving, don't fail if at least one resolve succeeds
|
||||||
|
addrs, err := addrutil.ParseAddresses(context.TODO(), d.Relays)
|
||||||
|
if err != nil {
|
||||||
|
log.Errorf("reoslving drand relays addresses: %+v", err)
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
return addrs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetupJournal(lr repo.LockedRepo) error {
|
func SetupJournal(lr repo.LockedRepo) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user