From b025ebb2a1ae989afc5ee3ae69cb920e97a4efdc Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 16 Mar 2023 23:54:29 +0100 Subject: refactor(tvix/store/nar): pass in &proto::node::Node 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 Autosubmit: flokli --- tvix/store/src/proto/grpc_pathinfoservice_wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/store/src/proto') 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> { 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()), }, -- cgit 1.4.1