Skip to content

Conversation

Frando
Copy link
Member

@Frando Frando commented Sep 24, 2025

Description

Currently, when functions want a iroh_blobs::api::Store, and you have a MemStore or FsStore, you have to do fs_store.as_ref().clone() to get from the FsStore to the api::Store. I stumbled a couple of times and had to look that up, it's not very intuitive and hard to find. So to make this easier, this adds From impls for api::Store for the various stores.

Breaking Changes

Notes & open questions

Change checklist

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

@Frando Frando requested a review from rklaehn September 24, 2025 07:13
Copy link

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

Last updated: 2025-09-24T07:15:19Z

Copy link
Collaborator

@rklaehn rklaehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@n0bot n0bot bot added this to iroh Sep 24, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Sep 24, 2025
@Frando Frando merged commit ac1e509 into main Sep 24, 2025
43 of 44 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Sep 24, 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