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: fix duplicate block issue in bitswap #7202

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Conversation

Stebalien
Copy link
Member

  1. Increase broadcast timeout.
  2. Fix use of sessions when pinning.

This also includes some bitswap changes to reduce some memory allocations and optimize some hot spots.

1. Increase broadcast timeout.
2. Fix use of sessions when pinning.

This also includes some bitswap changes to reduce some memory allocations and
optimize some hot spots.
@@ -75,6 +80,10 @@ func (s *syncDagService) Sync() error {
return s.syncFn()
}

func (s *syncDagService) Session(ctx context.Context) format.NodeGetter {
Copy link
Member Author

Choose a reason for hiding this comment

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

This lets mdag.FetchGraph correctly setup a bitswap session. A better fix is in #7201 but that's not going to make it into the release.

@Stebalien Stebalien merged commit 6f1cedd into master Apr 23, 2020
@hacdias hacdias deleted the fix/duplicate-blocks branch May 9, 2023 10:58
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.

1 participant