about summary refs log tree commit diff
path: root/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-16T22·54+0100
committerclbot <clbot@tvl.fyi>2023-03-17T07·49+0000
commitb025ebb2a1ae989afc5ee3ae69cb920e97a4efdc (patch)
tree4cd74f7486140d82c86976d2a594fe49d6f04038 /tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
parent985f842e32852f0e1a110fbfdf64be654e9ced09 (diff)
refactor(tvix/store/nar): pass in &proto::node::Node r/6019
Passing in a &proto::node::Node into all this allows us consumers to
keep ownership of the proto::node::Node.

Change-Id: I44882a86c46826b06a8a8a0b24c18adfc7052662
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8316
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs')
-rw-r--r--tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs b/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
index c7df6b643a12..21a65185de74 100644
--- a/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
+++ b/tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs
@@ -64,7 +64,7 @@ impl<
     ) -> Result<Response<proto::CalculateNarResponse>> {
         match request.into_inner().node {
             None => Err(Status::invalid_argument("no root node sent")),
-            Some(root_node) => match self.nar_calculation_service.calculate_nar(root_node) {
+            Some(root_node) => match self.nar_calculation_service.calculate_nar(&root_node) {
                 Ok(resp) => Ok(Response::new(resp)),
                 Err(e) => Err(e.into()),
             },