about summary refs log tree commit diff
path: root/tvix/cli/src
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-10-27T11·35+0000
committeredef <edef@edef.eu>2023-10-27T13·56+0000
commit7f7c1ae7be97a54e8a52bda29e6d2c22f2efb822 (patch)
treec05a0fa85a32a1561c85c44e3ee51e561a60081a /tvix/cli/src
parent36f2b69de59ddd9f64c1f37c9ef1422661643245 (diff)
refactor(nix-compat/store_path): make digest and name private r/6888
Change-Id: I62cbe883afcf3dd0c8d4de0e3b845069eb750c97
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9855
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/cli/src')
-rw-r--r--tvix/cli/src/tvix_store_io.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tvix/cli/src/tvix_store_io.rs b/tvix/cli/src/tvix_store_io.rs
index 3ecae98cf3e2..9be896ffc40f 100644
--- a/tvix/cli/src/tvix_store_io.rs
+++ b/tvix/cli/src/tvix_store_io.rs
@@ -61,10 +61,10 @@ impl TvixStoreIO {
         sub_path: &Path,
     ) -> Result<Option<Node>, io::Error> {
         let path_info_service = self.path_info_service.clone();
-        let digest = store_path.digest;
-        let task = self
-            .tokio_handle
-            .spawn(async move { path_info_service.get(digest).await });
+        let task = self.tokio_handle.spawn({
+            let digest = *store_path.digest();
+            async move { path_info_service.get(digest).await }
+        });
         let path_info = match self.tokio_handle.block_on(task).unwrap()? {
             // If there's no PathInfo found, early exit
             None => return Ok(None),