about summary refs log tree commit diff
path: root/tvix/store/src/chunkservice/memory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/chunkservice/memory.rs')
-rw-r--r--tvix/store/src/chunkservice/memory.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/tvix/store/src/chunkservice/memory.rs b/tvix/store/src/chunkservice/memory.rs
index 1ae8b9130565..8364e434461f 100644
--- a/tvix/store/src/chunkservice/memory.rs
+++ b/tvix/store/src/chunkservice/memory.rs
@@ -9,19 +9,11 @@ use crate::Error;
 
 use super::ChunkService;
 
-#[derive(Clone)]
+#[derive(Clone, Default)]
 pub struct MemoryChunkService {
     db: Arc<RwLock<HashMap<Vec<u8>, Vec<u8>>>>,
 }
 
-impl MemoryChunkService {
-    pub fn new() -> Self {
-        let db = Arc::new(RwLock::new(HashMap::default()));
-
-        Self { db }
-    }
-}
-
 impl ChunkService for MemoryChunkService {
     #[instrument(skip(self, digest), fields(chunk.digest=BASE64.encode(digest)))]
     fn has(&self, digest: &[u8]) -> Result<bool, Error> {