-
Notifications
You must be signed in to change notification settings - Fork 10
feat!: Allow configuring the downloader when creating a blobs protocol handler #76
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
Conversation
… handler we don't allow passing in the entire downloader, but all config options.
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/76/docs/iroh_blobs/ Last updated: 2025-05-12T13:23:05Z |
…is properly applied. - downloader handle has the config - downloader handle gets an Arc<Inner>
# Conflicts: # src/net_protocol.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
semver check indicates breaking changes, should go in the PR description! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 besides me wondering about the Downloader
struct wrapping.
@rklaehn what's the state of this PR? |
Merged main, fixed the merge commits, and filled in the Breaking changes section in the PR description. |
Description
Allow configuring the downloader when creating a blobs protocol handler
we don't allow passing in the entire downloader, but all config options.
Breaking Changes
iroh_blobs::downloader::Downloader
now takes aconfig: Config
argument instead ofconcurrency_limits: ConcurrencyLimits, retry_config: RetryConfig
.Config
has two public fieldconcurrency_limits
andretry_config
, so the migration is straightforward.Otherwise there's only additions (a new method
downloader_config
on theBlobs
constructor).Notes & open questions
Change checklist