-
Notifications
You must be signed in to change notification settings - Fork 184
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
refactor(iroh-blobs)!: implement some collection related things on the client side #2349
Conversation
this allows us to reduce the rpc api
a8534ef
to
f32c2a5
Compare
iroh/src/client/blobs.rs
Outdated
|
||
async fn list_collections_impl(&self, co: &Co<Result<CollectionInfo>>) -> Result<()> { | ||
let tags = self.tags_client(); | ||
let mut tags = tags.list().await?; |
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.
what about the filtering I mentioned on the other 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.
My opinion is that we don't need it since you should not have that many tags. But we can add it.
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 you end up with a lot of tags through documents?
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.
documents don't use tags as of now. they just inject a set of hashes to be left alone.
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.
they just inject a set of hashes to be left alone.
wait, how are they marking them as such then? 😅
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.
there is just a hook where you can feed it hashes...
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.
😢
In case somebody makes a million tags for stuff...
Description
A collection is just one particular way to use a hashseq, so it feels a bit weird to have it baked in to the iroh node. With this we can move some of it into the client.
This is a part of #2272 . We can make more similar changes once we have the batch API #2339 .
Breaking Changes
Notes & open questions
Note: I closed #2272 because half of the changes in that PR are here, the other half will be part of the batch PR, and moving collections into iroh I am not convinced of yet...
Change checklist