about summary refs log tree commit diff
path: root/tvix/store/src/proto
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/proto')
-rw-r--r--tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs b/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
index 5da3b23c269c..d003d4bdb728 100644
--- a/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
+++ b/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
@@ -77,10 +77,13 @@ where
         &self,
         request: Request<castorepb::Node>,
     ) -> Result<Response<proto::CalculateNarResponse>> {
-        let (_, root_node) = request.into_inner().into_name_and_node().map_err(|e| {
-            warn!(err = %e, "invalid root node");
-            Status::invalid_argument("invalid root node")
-        })?;
+        let (_, root_node) = request
+            .into_inner()
+            .into_name_bytes_and_node()
+            .map_err(|e| {
+                warn!(err = %e, "invalid root node");
+                Status::invalid_argument("invalid root node")
+            })?;
 
         match self.nar_calculation_service.calculate_nar(&root_node).await {
             Ok((nar_size, nar_sha256)) => Ok(Response::new(proto::CalculateNarResponse {