Skip to content

Commit

Permalink
refactor(iroh-bytes): get rid of meta dir (#2111)
Browse files Browse the repository at this point in the history
## Description

refactor(iroh-bytes): get rid of meta dir

blobs.db now lives on top level. The meta dir used to exist because we
had to store metadata in the file system. Now we don't have to do this
anymore, so the meta dir containing a single file seems a bit
superfluous.

cc @ppodolsky if we merge this you would have to manually move the blobs
file one level up for the places where you have already done an import.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
  • Loading branch information
rklaehn authored Mar 22, 2024
1 parent 918fca6 commit cbc5906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-bytes/src/store/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ impl Store {
/// Load or create a new store.
pub async fn load(root: impl AsRef<Path>) -> io::Result<Self> {
let path = root.as_ref();
let db_path = path.join("meta").join("blobs.db");
let db_path = path.join("blobs.db");
let options = Options {
path: PathOptions::new(path),
inline: Default::default(),
Expand Down

0 comments on commit cbc5906

Please sign in to comment.