Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Flag for retrying node setup #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Flag for retrying node setup #7

wants to merge 1 commit into from

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Sep 3, 2018

When starting many nodes, even with good networks, it tends to fail on one or two annoyingly often. This adds a way to workaround that.

@Stebalien
Copy link
Member

It would be nice to figure out why this is happening so often.

main.go Outdated
for r := 0; r < *retries; r++ {
var h host.Host
var d *dht.IpfsDHT
h, d, err = makeAndStartNode(ds, "/ip4/0.0.0.0/tcp/0", *relay, *retries)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does creating the node itself (not just bootstrapping) fail? That should never happen.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I haven't seen that happen, I guess erroring/panicking here is more correct

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but @whyrusleeping should definitely look at this.

@whyrusleeping
Copy link
Member

Alternatively, we should add more different bootstrappers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants