summaryrefslogtreecommitdiff
path: root/src/indexedstore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/indexedstore.rs')
-rw-r--r--src/indexedstore.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indexedstore.rs b/src/indexedstore.rs
index 7f67a1f..982e2d9 100644
--- a/src/indexedstore.rs
+++ b/src/indexedstore.rs
@@ -40,10 +40,10 @@ impl IndexedStore {
Ok(Self { store, index })
}
- pub fn save(&mut self, meta: &ChunkMeta, chunk: &DataChunk) -> IndexedResult<ChunkId> {
+ pub fn save(&mut self, chunk: &DataChunk) -> IndexedResult<ChunkId> {
let id = ChunkId::new();
- self.store.save(&id, meta, chunk)?;
- self.insert_meta(&id, meta)?;
+ self.store.save(&id, chunk)?;
+ self.insert_meta(&id, chunk.meta())?;
Ok(id)
}