about summary refs log tree commit diff
path: root/tvix/cli/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-31T14·13+0200
committerclbot <clbot@tvl.fyi>2023-12-31T22·18+0000
commit9ca1353122e6c1c5cf88d2ed5839fe385be1d5d0 (patch)
tree010bc4ec556a7e9e109cc0f74051363187d68f76 /tvix/cli/src
parente2b6c77bfc4d00ba275d8029fe333d6064c268e9 (diff)
refactor(tvix/castore/blobsvc): return Box, not Arc r/7293
While we currently mostly use it in an Arc, as we need to clone it
inside PathInfoService, there might be other usecases not requiring it
to be Clone.

Change-Id: I7bd337cd2e4c2d4154b385461eefa62c9b78345d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10482
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/cli/src')
-rw-r--r--tvix/cli/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs
index a45061412c1c..742bfe5ee66d 100644
--- a/tvix/cli/src/main.rs
+++ b/tvix/cli/src/main.rs
@@ -77,7 +77,9 @@ async fn construct_services(
     Arc<dyn DirectoryService>,
     Box<dyn PathInfoService>,
 )> {
-    let blob_service = blobservice::from_addr(blob_service_addr.as_ref()).await?;
+    let blob_service: Arc<dyn BlobService> = blobservice::from_addr(blob_service_addr.as_ref())
+        .await?
+        .into();
     let directory_service = directoryservice::from_addr(directory_service_addr.as_ref()).await?;
     let path_info_service = pathinfoservice::from_addr(
         path_info_service_addr.as_ref(),