Reduce the number of args of update functions

This commit is contained in:
Clément Renault 2020-01-16 16:29:50 +01:00
parent be31a14326
commit 70a529d197
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 90 additions and 276 deletions

View file

@ -242,7 +242,7 @@ impl Index {
pub fn schema_update(&self, writer: &mut heed::RwTxn<UpdateT>, schema: Schema) -> MResult<u64> {
let _ = self.updates_notifier.send(UpdateEvent::NewUpdate);
update::push_schema_update(writer, self.updates, self.updates_results, schema)
update::push_schema_update(writer, self, schema)
}
pub fn customs_update(&self, writer: &mut heed::RwTxn<UpdateT>, customs: Vec<u8>) -> ZResult<u64> {