about summary refs log tree commit diff
path: root/tvix/store/src/nar/non_caching_calculation_service.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/nar/non_caching_calculation_service.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/nar/non_caching_calculation_service.rs')
-rw-r--r--tvix/store/src/nar/non_caching_calculation_service.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/nar/non_caching_calculation_service.rs b/tvix/store/src/nar/non_caching_calculation_service.rs
index 880d12636979..f77f0b30d61f 100644
--- a/tvix/store/src/nar/non_caching_calculation_service.rs
+++ b/tvix/store/src/nar/non_caching_calculation_service.rs
@@ -35,7 +35,7 @@ impl<BS: BlobService, CS: ChunkService + Clone, DS: DirectoryService> NARCalcula
 {
     fn calculate_nar(
         &self,
-        root_node: proto::node::Node,
+        root_node: &proto::node::Node,
     ) -> Result<proto::CalculateNarResponse, RenderError> {
         let h = Sha256::new();
         let mut cw = CountWrite::from(h);