diff options
author | Florian Klink <flokli@flokli.de> | 2023-12-31T14·26+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-12-31T22·18+0000 |
commit | 41935fab702f534ce7b787ef5f6e9f2ac2e7ce00 (patch) | |
tree | f71a64a30f20dd7eef4ddc5f3ee1a26983236a51 /tvix/cli | |
parent | 9ca1353122e6c1c5cf88d2ed5839fe385be1d5d0 (diff) |
refactor(tvix/castore/directorysvc): return Box, not Arc r/7294
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: Ia05bb370340792a048e2036be30e285ef1e63870 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10483 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/cli')
-rw-r--r-- | tvix/cli/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs index 742bfe5ee66d..c367fecfac2c 100644 --- a/tvix/cli/src/main.rs +++ b/tvix/cli/src/main.rs @@ -80,7 +80,10 @@ async fn construct_services( 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 directory_service: Arc<dyn DirectoryService> = + directoryservice::from_addr(directory_service_addr.as_ref()) + .await? + .into(); let path_info_service = pathinfoservice::from_addr( path_info_service_addr.as_ref(), blob_service.clone(), |