Skip to content

Commit 940dba1

Browse files
committed
fix(cli/fs): adjust local GC root key and set workspace crate versions
1 parent 14ea111 commit 940dba1

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

Cargo.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@ log = "0.4.28"
3333
minicbor = { version = "2.1.1", features = ["alloc", "derive", "half"] }
3434
postcard = "1.1.3"
3535
redb = "3.1.0"
36-
s5_blobs = { path = "s5_blobs" }
37-
s5_core = { path = "s5_core" }
38-
s5_fs = { path = "s5_fs" }
39-
s5_importer_http = { path = "importers/http" }
40-
s5_importer_local = { path = "importers/local" }
41-
s5_node = { path = "s5_node" }
42-
s5_registry = { path = "s5_registry" }
43-
s5_store_local = { path = "blob_stores/local" }
44-
s5_store_memory = { path = "blob_stores/memory" }
45-
s5_store_s3 = { path = "blob_stores/s3" }
46-
s5_store_sia = { path = "blob_stores/sia" }
36+
s5_blobs = { path = "s5_blobs", version = "1.0.0-beta.1" }
37+
s5_core = { path = "s5_core", version = "1.0.0-beta.1" }
38+
s5_fs = { path = "s5_fs", version = "1.0.0-beta.1" }
39+
s5_fuse = { path = "s5_fuse", version = "1.0.0-beta.1" }
40+
s5_importer_http = { path = "importers/http", version = "1.0.0-beta.1" }
41+
s5_importer_local = { path = "importers/local", version = "1.0.0-beta.1" }
42+
s5_node = { path = "s5_node", version = "1.0.0-beta.1" }
43+
s5_registry = { path = "s5_registry", version = "1.0.0-beta.1" }
44+
s5_store_local = { path = "blob_stores/local", version = "1.0.0-beta.1" }
45+
s5_store_memory = { path = "blob_stores/memory", version = "1.0.0-beta.1" }
46+
s5_store_s3 = { path = "blob_stores/s3", version = "1.0.0-beta.1" }
47+
s5_store_sia = { path = "blob_stores/sia", version = "1.0.0-beta.1" }
4748
serde = { version = "1.0.228", features = ["derive"] }
4849
thiserror = "2.0.17"
4950
tokio = { version = "1.48.0", features = ["full"] }

s5_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ iroh.workspace = true
3434
s5_blobs.workspace = true
3535
base64 = "0.22"
3636
hex = "0.4.3"
37-
s5_fuse = { path = "../s5_fuse" }
37+
s5_fuse.workspace = true
3838
s5_store_local.workspace = true
3939
url = "2.5"
4040

s5_cli/src/cmd/blobs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn run_blobs(
7272

7373
// Collect all content hashes reachable from this node's
7474
// primary FS5 root (current head + snapshots).
75-
let root_key = config.keys.get(&0x0e);
75+
let root_key = None;
7676
let reachable = s5_fs::gc::collect_fs_reachable_hashes(fs_root, root_key).await?;
7777

7878
let report = s5_fs::gc::gc_store(&blob_store, &reachable, &pinner, dry_run).await?;
@@ -103,7 +103,7 @@ pub async fn run_blobs(
103103

104104
// Collect all content hashes reachable from this node's
105105
// primary FS5 root (current head + snapshots).
106-
let root_key = config.keys.get(&0x0e);
106+
let root_key = None;
107107
let reachable = s5_fs::gc::collect_fs_reachable_hashes(fs_root, root_key).await?;
108108

109109
let mut missing = Vec::new();

s5_fs/src/actor/persistence.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,13 @@ impl DirActor {
193193
} => {
194194
let hash = self.context.meta_blob_store.import_bytes(bytes).await?;
195195

196-
if notify_parent {
197-
if let Some(handle) = handle.upgrade() {
198-
handle
199-
.send_msg(super::ActorMessage::UpdateDirRefHash {
200-
path: path.clone(),
201-
hash: hash.hash,
202-
})
203-
.await?;
204-
}
196+
if notify_parent && let Some(handle) = handle.upgrade() {
197+
handle
198+
.send_msg(super::ActorMessage::UpdateDirRefHash {
199+
path: path.clone(),
200+
hash: hash.hash,
201+
})
202+
.await?;
205203
}
206204

207205
initial_hash.copy_from_slice(hash.hash.as_bytes());

0 commit comments

Comments
 (0)