From b5e37869e6ddddf0575bdc98e0f4cc05753f0fc0 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 12 Jun 2023 16:04:56 +0300 Subject: refactor(tvix/store/pathinfosvc): use Arc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes the use of generics, like previously done with Blob and Directory services. Change-Id: I7cc8bd1439b026c88e80c11e38aafc63c74e5e84 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8751 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/store/src/store_io.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tvix/store/src/store_io.rs') diff --git a/tvix/store/src/store_io.rs b/tvix/store/src/store_io.rs index c35da49da998..fcbc5842a3e2 100644 --- a/tvix/store/src/store_io.rs +++ b/tvix/store/src/store_io.rs @@ -29,18 +29,18 @@ use crate::{ /// This is to both cover cases of syntactically valid store paths, that exist /// on the filesystem (still managed by Nix), as well as being able to read /// files outside store paths. -pub struct TvixStoreIO { +pub struct TvixStoreIO { blob_service: Arc, directory_service: Arc, - path_info_service: PS, + path_info_service: Arc, std_io: StdIO, } -impl TvixStoreIO { +impl TvixStoreIO { pub fn new( blob_service: Arc, directory_service: Arc, - path_info_service: PS, + path_info_service: Arc, ) -> Self { Self { blob_service, @@ -179,7 +179,7 @@ fn calculate_nar_based_store_path(nar_sha256_digest: &[u8; 32], name: &str) -> S build_regular_ca_path(name, &nar_hash_with_mode, Vec::::new(), false).unwrap() } -impl EvalIO for TvixStoreIO { +impl EvalIO for TvixStoreIO { #[instrument(skip(self), ret, err)] fn path_exists(&self, path: &Path) -> Result { if let Ok((store_path, sub_path)) = -- cgit 1.4.1