diff --git a/src/model/Cargo.toml b/src/model/Cargo.toml index 48b74991..1d695192 100644 --- a/src/model/Cargo.toml +++ b/src/model/Cargo.toml @@ -23,7 +23,7 @@ arc-swap = "1.0" hex = "0.4" log = "0.4" rand = "0.8" -zstd = "0.9" +zstd = { version = "0.9", default-features = false } sled = "0.34" diff --git a/src/model/block.rs b/src/model/block.rs index b1f2a3fa..6df8e265 100644 --- a/src/model/block.rs +++ b/src/model/block.rs @@ -697,6 +697,7 @@ impl BlockManager { }; let ent_type = data_dir_ent.file_type().await?; + let name = name.strip_suffix(".zst").unwrap_or(&name); if name.len() == 2 && hex::decode(&name).is_ok() && ent_type.is_dir() { state = self .for_each_file_rec(&data_dir_ent.path(), state, f, must_exit)