diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-31T14·13+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-12-31T22·18+0000 |
commit | 9ca1353122e6c1c5cf88d2ed5839fe385be1d5d0 (patch) | |
tree | 010bc4ec556a7e9e109cc0f74051363187d68f76 /tvix/cli/src/main.rs | |
parent | e2b6c77bfc4d00ba275d8029fe333d6064c268e9 (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/main.rs')
-rw-r--r-- | tvix/cli/src/main.rs | 4 |
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(), |