refactor(tvix/castore): relax trait bounds for DS
Make this an `AsRef<dyn DirectoryService>`. This helps dropping some Clone requirements. Unfortunately, we can't thread this through to TvixStoreIO just yet. Change-Id: I3f07eb28d6c793d3313fe21506ada84d5a8aa3ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/10533 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
parent
3297843bf1
commit
f20969de9b
3 changed files with 11 additions and 9 deletions
|
|
@ -4,6 +4,7 @@ use crate::fixtures::*;
|
|||
use crate::import::ingest_path;
|
||||
use crate::proto;
|
||||
use crate::utils::{gen_blob_service, gen_directory_service};
|
||||
use std::ops::Deref;
|
||||
use std::sync::Arc;
|
||||
use tempfile::TempDir;
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ async fn symlink() {
|
|||
|
||||
let root_node = ingest_path(
|
||||
blob_service,
|
||||
directory_service,
|
||||
&directory_service.deref(),
|
||||
tmpdir.path().join("doesntmatter"),
|
||||
)
|
||||
.await
|
||||
|
|
@ -53,7 +54,7 @@ async fn single_file() {
|
|||
|
||||
let root_node = ingest_path(
|
||||
blob_service.clone(),
|
||||
directory_service,
|
||||
&directory_service.deref(),
|
||||
tmpdir.path().join("root"),
|
||||
)
|
||||
.await
|
||||
|
|
@ -92,7 +93,7 @@ async fn complicated() {
|
|||
|
||||
let root_node = ingest_path(
|
||||
blob_service.clone(),
|
||||
directory_service.clone(),
|
||||
&directory_service.deref(),
|
||||
tmpdir.path(),
|
||||
)
|
||||
.await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue