From 52cad8619511b97c4bcd5768ce9b3579ff665505 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 17 Dec 2023 01:32:38 +0200 Subject: refactor(tvix/store): remove Arc<> from PathInfoService::from_addr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes PathInfoService::from_addr return a Box, rather than an Arc, and leaves it up to the consumers to rewrap it into an Arc where needed. This allows us to drop the Arc for the tvix-store daemon subcommand. Change-Id: Ic83aa2ade6c51912281bd17c7eef7252e152b2d1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10409 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/store/src/proto/tests/grpc_pathinfoservice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/store/src/proto/tests') diff --git a/tvix/store/src/proto/tests/grpc_pathinfoservice.rs b/tvix/store/src/proto/tests/grpc_pathinfoservice.rs index c0b953d0f2e9..e8da7792cdb1 100644 --- a/tvix/store/src/proto/tests/grpc_pathinfoservice.rs +++ b/tvix/store/src/proto/tests/grpc_pathinfoservice.rs @@ -21,7 +21,7 @@ fn gen_grpc_service( ) -> Arc>>> { let blob_service = gen_blob_service(); let directory_service = gen_directory_service(); - Arc::new(GRPCPathInfoServiceWrapper::from(gen_pathinfo_service( + Arc::new(GRPCPathInfoServiceWrapper::new(gen_pathinfo_service( blob_service, directory_service, ))) -- cgit 1.4.1