refactor(tvix/*store): use DS: DirectoryService
We implement DirectoryService for Arc<DirectoryService> and Box<DirectoryService>, this is sufficient. Change-Id: I0a5a81cbc4782764406b5bca57f908ace6090737 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11586 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
f2f12d1556
commit
ba00f0c695
6 changed files with 23 additions and 29 deletions
|
|
@ -172,8 +172,8 @@ async fn hash<D: Digest + std::io::Write>(
|
|||
|
||||
impl<BS, DS, PS> Fetcher<BS, DS, PS>
|
||||
where
|
||||
BS: AsRef<(dyn BlobService + 'static)> + Clone + Send + Sync + 'static,
|
||||
DS: AsRef<(dyn DirectoryService + 'static)>,
|
||||
BS: BlobService + Clone + 'static,
|
||||
DS: DirectoryService + Clone,
|
||||
PS: PathInfoService,
|
||||
{
|
||||
/// Ingest the data from a specified [Fetch].
|
||||
|
|
@ -247,7 +247,7 @@ where
|
|||
// Ingest the archive, get the root node
|
||||
let node = tvix_castore::import::archive::ingest_archive(
|
||||
self.blob_service.clone(),
|
||||
&self.directory_service,
|
||||
self.directory_service.clone(),
|
||||
archive,
|
||||
)
|
||||
.await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue