diff --git a/src/update_store.rs b/src/update_store.rs index 564190af7..1b0fe4620 100644 --- a/src/update_store.rs +++ b/src/update_store.rs @@ -2,7 +2,7 @@ use std::path::Path; use std::sync::Arc; use crossbeam_channel::Sender; -use heed::types::{OwnedType, DecodeIgnore, SerdeJson, ByteSlice}; +use heed::types::{OwnedType, DecodeIgnore, SerdeBincode, ByteSlice}; use heed::{EnvOpenOptions, Env, Database}; use serde::{Serialize, Deserialize}; @@ -11,9 +11,9 @@ use crate::BEU64; #[derive(Clone)] pub struct UpdateStore { env: Env, - pending_meta: Database, SerdeJson>, + pending_meta: Database, SerdeBincode>, pending: Database, ByteSlice>, - processed_meta: Database, SerdeJson>, + processed_meta: Database, SerdeBincode>, notification_sender: Sender<()>, } @@ -153,8 +153,8 @@ impl UpdateStore { where M: for<'a> Deserialize<'a>, F: for<'a> FnMut( - heed::RoIter<'a, OwnedType, SerdeJson>, - heed::RoIter<'a, OwnedType, SerdeJson>, + heed::RoIter<'a, OwnedType, SerdeBincode>, + heed::RoIter<'a, OwnedType, SerdeBincode>, ) -> heed::Result, { let rtxn = self.env.read_txn()?;