-
Notifications
You must be signed in to change notification settings - Fork 14
deps: bump to iroh@main and irpc@main #128
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
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/128/docs/iroh_blobs/ Last updated: 2025-07-29T12:58:24Z |
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.
Oh boy, that is probably going to be a lot of merge conflicts in my various open PRs. Still, better get it over with...
src/api.rs
Outdated
Request::ClearProtected(msg) => local.send((msg, tx)), | ||
Request::SyncDb(msg) => local.send((msg, tx)), | ||
Request::Shutdown(msg) => local.send((msg, tx)), | ||
BlobsApi::SetTag(msg) => local.send((msg, tx)), |
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.
Was this forwarder boilerplate one of the things we can get rid of with the new features of the macro?
Just curious, perfectly reasonable to do this in a subsequent PR.
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.
Yup! Removed in the latest commit.
src/api/proto.rs
Outdated
#[derive(Debug, Serialize, Deserialize)] | ||
pub enum Request { | ||
pub enum BlobsApi { |
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.
Not quite sure about this rename. Request as the enum of all possible serializable requests seems fine. And calling it BlobsApi creates a bit of confusion with the api module that has the actual friendly api.
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.
Don't mind much. Renamed back to Request
. As most things are not public that use this it's fine. My initial rename was from seeing irpc::Client<Request>
and thinking "maybe better to rename to something that contains Blobs
". But as this is all private it really is fine as it is.
I think since the proto module is hidden but public, due to the rename there are breaking changes. |
Description
This bumps irpc to the (not yet released) main version, adapting for the breaking changes introduced in n0-computer/irpc#46.
Breaking Changes
iroh_blobs::api::proto::StoreService
is removed,Request
now implementsirpc::Service
iroh_blobs::api::downloader::DownloaderService
is removed,SwarmProtocol
now implementsirpc::Service
Notes & open questions
Change checklist