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

feat: Passthrough timeout to WantSession::new #265

Merged
merged 12 commits into from
Jul 31, 2024

Conversation

dariusc93
Copy link
Owner

@dariusc93 dariusc93 commented Jul 18, 2024

Bitswap supports a timeout, however the field was never passthrough from Repo::_get_blocks. This PR introduces that parameter and passes through the timeout to the want session.
Additionally, this will enable the timer for discovery if no peers are available or if all peers provided has failed.

@dariusc93 dariusc93 self-assigned this Jul 18, 2024
@dariusc93 dariusc93 marked this pull request as ready for review July 22, 2024 12:22
@dariusc93 dariusc93 marked this pull request as draft July 29, 2024 01:18
@dariusc93 dariusc93 marked this pull request as ready for review July 31, 2024 20:38
@dariusc93 dariusc93 merged commit b2a91ec into libp2p-next Jul 31, 2024
2 checks passed
@dariusc93 dariusc93 deleted the feat/bitswap-timeout branch July 31, 2024 22:34
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