Merge pull request #4626 from filecoin-project/fix/drand-peerid-loop
bootstrap: don't return early when one drand resolution fails
This commit is contained in:
commit
5a7863d21a
@ -101,7 +101,7 @@ func DrandBootstrap(ds dtypes.DrandSchedule) (dtypes.DrandBootstrap, error) {
|
|||||||
addrs, err := addrutil.ParseAddresses(context.TODO(), d.Config.Relays)
|
addrs, err := addrutil.ParseAddresses(context.TODO(), d.Config.Relays)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("reoslving drand relays addresses: %+v", err)
|
log.Errorf("reoslving drand relays addresses: %+v", err)
|
||||||
return res, nil
|
continue
|
||||||
}
|
}
|
||||||
res = append(res, addrs...)
|
res = append(res, addrs...)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user