diff options
Diffstat (limited to 'tvix/store/src/directoryservice/memory.rs')
-rw-r--r-- | tvix/store/src/directoryservice/memory.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tvix/store/src/directoryservice/memory.rs b/tvix/store/src/directoryservice/memory.rs index 3d7351033c37..2b4668a15ecf 100644 --- a/tvix/store/src/directoryservice/memory.rs +++ b/tvix/store/src/directoryservice/memory.rs @@ -4,6 +4,7 @@ use std::collections::HashMap; use std::sync::{Arc, RwLock}; use tracing::{instrument, warn}; +use super::utils::SimplePutter; use super::{DirectoryService, DirectoryTraverser}; #[derive(Clone, Default)] @@ -74,4 +75,14 @@ impl DirectoryService for MemoryDirectoryService { fn get_recursive(&self, root_directory_digest: &[u8; 32]) -> Self::DirectoriesIterator { DirectoryTraverser::with(self.clone(), root_directory_digest) } + + type DirectoryPutter = SimplePutter<Self>; + + #[instrument(skip_all)] + fn put_multiple_start(&self) -> Self::DirectoryPutter + where + Self: Clone, + { + SimplePutter::new(self.clone()) + } } |