-
Notifications
You must be signed in to change notification settings - Fork 2
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: Pluggable gc with exemptions #17
Conversation
also add ability to add excepmtions for gc before gc is started.
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/17/docs/iroh_blobs/ Last updated: 2024-11-28T13:24:20Z |
The place where I tried this out is https://github.com/n0-computer/iroh-docs/tree/try-out-gc |
new api looks good |
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.
I'm fairly confident this API will work for willow.
different way to deal with the clone madness Co-authored-by: Philipp Krüger <[email protected]>
first protect, then delete tag
# Conflicts: # src/net_protocol.rs
Description
This adds gc to blobs so it does not have to be driven externally. A big complication is that we want to have the ability to add exemptions to gc, e.g. from docs or willow.
So the gc is initially not running when the Blobs object is created. We have the ability to add exemption callbacks in this stage. Once the setup is done you can (but don't have to!) start the gc loop, at which point adding exemptions is no longer possible.
Todo:
Breaking Changes
Notes & open questions
Change checklist