Skip to content

Conversation

@rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Jul 28, 2025

Description

We used to have a builder in iroh-blobs. This brings it back. It does not have as many options as the previous one, but there will be more, probably.

I left the BlobsProtocol::new public for now. We can make it private if the options become too many. There will probably be minor changes related to how the provider events work, so people that don't need those are probably best served using the builder.

Breaking Changes

None

Notes & open questions

Make new private right now?
Note: I somewhat dislike the BlobsProtocol::memory().build() style compared to explicitly creating a store, since it often means that you do preliminary work like importing data while the blobs protocol is already listening. But YMMV.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@github-actions
Copy link

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/129/docs/iroh_blobs/

Last updated: 2025-07-28T08:56:12Z

@n0bot n0bot bot added this to iroh Jul 28, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Jul 28, 2025
@rklaehn
Copy link
Collaborator Author

rklaehn commented Dec 4, 2025

I was able to remove the endpoint from BlobsProtocol, so I think having just a constructor is actually fine...

@rklaehn rklaehn closed this Dec 4, 2025
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants