diff options
Diffstat (limited to 'tvix/store/src/directoryservice/memory.rs')
-rw-r--r-- | tvix/store/src/directoryservice/memory.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tvix/store/src/directoryservice/memory.rs b/tvix/store/src/directoryservice/memory.rs index 34ee45203320..87cd038888e6 100644 --- a/tvix/store/src/directoryservice/memory.rs +++ b/tvix/store/src/directoryservice/memory.rs @@ -6,19 +6,11 @@ use tracing::{instrument, warn}; use super::DirectoryService; -#[derive(Clone)] +#[derive(Clone, Default)] pub struct MemoryDirectoryService { db: Arc<RwLock<HashMap<Vec<u8>, proto::Directory>>>, } -impl MemoryDirectoryService { - pub fn new() -> Self { - let db = Arc::new(RwLock::new(HashMap::default())); - - Self { db } - } -} - impl DirectoryService for MemoryDirectoryService { // TODO: change api to only be by digest #[instrument(skip(self, by_what))] |