diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-31T16·23+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-01-01T00·42+0000 |
commit | 20c98a51bf36ff6e74c4e62275ff31e7c43802c3 (patch) | |
tree | 8abd5f6b3062136cf8f32f1b4585130a7ed687cf /tvix/store/src | |
parent | fa335aaa68b0875e861aff09536ef10e0b847f70 (diff) |
refactor(tvix/store/bin): don't reconstruct StorePath twice r/7298
We already have that data in output_path. Change-Id: Iadf615551f0b44d539098446ff5926994deb606d Reviewed-on: https://cl.tvl.fyi/c/depot/+/10508 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/store/src')
-rw-r--r-- | tvix/store/src/bin/tvix-store.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs index 919294f697b3..ab80415cf2e5 100644 --- a/tvix/store/src/bin/tvix-store.rs +++ b/tvix/store/src/bin/tvix-store.rs @@ -2,7 +2,6 @@ use clap::Subcommand; use data_encoding::BASE64; use futures::future::try_join_all; use nix_compat::store_path; -use nix_compat::store_path::StorePath; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; @@ -17,7 +16,6 @@ use tvix_castore::proto::directory_service_server::DirectoryServiceServer; use tvix_castore::proto::node::Node; use tvix_castore::proto::GRPCBlobServiceWrapper; use tvix_castore::proto::GRPCDirectoryServiceWrapper; -use tvix_castore::proto::NamedNode; use tvix_store::pathinfoservice::PathInfoService; use tvix_store::proto::nar_info; use tvix_store::proto::path_info_service_server::PathInfoServiceServer; @@ -321,12 +319,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { log_node(&node, &path); - println!( - "{}", - StorePath::from_bytes(node.get_name()) - .unwrap() - .to_absolute_path() - ); + println!("{}", output_path.to_absolute_path()); Ok(()) } |