Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put short delay between each publish in RepublishAll #69

Merged
merged 2 commits into from Jun 28, 2019

Conversation

brandonwestcott
Copy link
Contributor

blocks were getting published on andrew's box, but weren't appearing on the community hub node. Theory is that community block store is filling up its ingress buffer inside libp2p, so putting a short delay between

Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Question about panic vs returning error. The build also fails, although it might be a fluke.

return net.(*network.RemoteNetwork).RepublishAll()
err = net.(*network.RemoteNetwork).RepublishAll()
if err != nil {
panic(errors.Wrap(err, "error on publish"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it better to return the error here, since the function has an error return type?

@brandonwestcott
Copy link
Contributor Author

failure is due to dgraph-io/badger#886

@tobowers
Copy link
Contributor

i just pushed rebuild on this.

@@ -52,7 +57,12 @@ func doIt(ctx context.Context) error {
panic(errors.Wrap(err, "setting up network"))
Copy link
Contributor

Choose a reason for hiding this comment

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

error return here too I guess (but I realize that was the old code)

Copy link
Contributor

@tobowers tobowers left a comment

Choose a reason for hiding this comment

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

when green

Brandon Westcott added 2 commits June 28, 2019 11:10
theory is that community block store is filling up
its ingress buffer inside libp2p
@brandonwestcott brandonwestcott merged commit 9a8e79c into master Jun 28, 2019
@brandonwestcott brandonwestcott deleted the republish-temp-fix branch June 28, 2019 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants