about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-03-18T13·34+0200
committerclbot <clbot@tvl.fyi>2024-03-18T16·10+0000
commit3dd708690f88d48085a00f085125a3371a5fa01b (patch)
treeb5cc944abf51ed1b219c4875f72ce6c58f0c877c /tvix
parenta65c49fbc3e73276dc4eb42a2931a49f15ac7eea (diff)
refactor(tvix/store/import): use B3Digest in log_node r/7733
Change-Id: I2347bbae8e7d4e19eeed4a3fb13729d0a94feedd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11195
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/store/src/import.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tvix/store/src/import.rs b/tvix/store/src/import.rs
index 50c6b73109d7..f2e7bdfe5da3 100644
--- a/tvix/store/src/import.rs
+++ b/tvix/store/src/import.rs
@@ -1,9 +1,7 @@
 use std::path::Path;
-
-use data_encoding::BASE64;
 use tracing::{debug, instrument};
 use tvix_castore::{
-    blobservice::BlobService, directoryservice::DirectoryService, proto::node::Node,
+    blobservice::BlobService, directoryservice::DirectoryService, proto::node::Node, B3Digest,
 };
 
 use nix_compat::store_path::{self, StorePath};
@@ -19,7 +17,7 @@ pub fn log_node(node: &Node, path: &Path) {
             debug!(
                 path = ?path,
                 name = ?directory_node.name,
-                digest = BASE64.encode(&directory_node.digest),
+                digest = %B3Digest::try_from(directory_node.digest.clone()).unwrap(),
                 "import successful",
             )
         }
@@ -27,7 +25,7 @@ pub fn log_node(node: &Node, path: &Path) {
             debug!(
                 path = ?path,
                 name = ?file_node.name,
-                digest = BASE64.encode(&file_node.digest),
+                digest = %B3Digest::try_from(file_node.digest.clone()).unwrap(),
                 "import successful"
             )
         }