diff options
Diffstat (limited to 'tvix/castore/src')
-rw-r--r-- | tvix/castore/src/import.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tvix/castore/src/import.rs b/tvix/castore/src/import.rs index 2e1d4c2af33a..acae8299cc27 100644 --- a/tvix/castore/src/import.rs +++ b/tvix/castore/src/import.rs @@ -143,11 +143,12 @@ where BS: AsRef<dyn BlobService> + Clone, DS: AsRef<dyn DirectoryService>, { - let entries = walk_path_for_ingestion(path)?; - let entries_stream = leveled_entries_to_stream(entries); - pin_mut!(entries_stream); + // produce the leveled-key vector of DirEntry. + let entries_per_depths = walk_path_for_ingestion(path)?; + let direntry_stream = leveled_entries_to_stream(entries_per_depths); + pin_mut!(direntry_stream); - ingest_entries(blob_service, directory_service, entries_stream).await + ingest_entries(blob_service, directory_service, direntry_stream).await } /// The Merkle invariant checker is an internal structure to perform bookkeeping of all directory |