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

fix: ignore bad peers when fetching the latest value #54

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

Stebalien
Copy link
Member

They may not support the protocol. Or they may just not give us what we're looking for. We might as well keep asking till someone answers.

pubsub.go Outdated Show resolved Hide resolved
@Stebalien
Copy link
Member Author

We're seeing a lot of errors on the gateway when ipns pubsub peers connect without supporting this fetch protocol.

Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

@Stebalien thanks for taking a look at this. Seems fine by me, although as I mention in my comment we should either change or remove the code for tracking peers that we fail to Fetch from.

pubsub.go Outdated Show resolved Hide resolved
They may not support the protocol. Or they may just not give us what we're
looking for. We might as well keep asking till someone answers.
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM, and also is cleaner now 😄

@Stebalien Stebalien merged commit 95d0efb into master Feb 6, 2020
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.

2 participants