diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-12T13·48+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-12-12T18·06+0000 |
commit | 30d82efa774f72e6d33c2070b32d365121654c54 (patch) | |
tree | f0842e93b043c1dcad569127a9904f06c8112a4b /tvix/store/src/nar/mod.rs | |
parent | 91456c3520a03e0f3b73224f1d80c56a5392fe32 (diff) |
refactor(tvix/castore/blobservice): use io::Result in trait r/7207
For all these calls, the caller has enough context about what it did, so it should be fine to use io::Result here. We pretty much only constructed crate::Error::StorageError before anyways, so this conveys *more* information. Change-Id: I5cabb3769c9c2314bab926d34dda748fda9d3ccc Reviewed-on: https://cl.tvl.fyi/c/depot/+/10328 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src/nar/mod.rs')
-rw-r--r-- | tvix/store/src/nar/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/nar/mod.rs b/tvix/store/src/nar/mod.rs index 25a9e18826c8..c1a7fc2a933f 100644 --- a/tvix/store/src/nar/mod.rs +++ b/tvix/store/src/nar/mod.rs @@ -1,5 +1,5 @@ use data_encoding::BASE64; -use tvix_castore::{B3Digest, Error}; +use tvix_castore::B3Digest; mod import; mod renderer; @@ -11,7 +11,7 @@ pub use renderer::write_nar; #[derive(Debug, thiserror::Error)] pub enum RenderError { #[error("failure talking to a backing store client: {0}")] - StoreError(Error), + StoreError(#[source] std::io::Error), #[error("unable to find directory {}, referred from {:?}", .0, .1)] DirectoryNotFound(B3Digest, bytes::Bytes), |