Add flush method to Database trait

This commit is contained in:
Riccardo Casatta
2021-07-27 11:38:11 +02:00
parent 5cdc5fb58a
commit e52550cfec
4 changed files with 15 additions and 0 deletions

View File

@@ -367,6 +367,10 @@ impl Database for Tree {
Ok(val)
})
}
fn flush(&mut self) -> Result<(), Error> {
Ok(Tree::flush(self).map(|_| ())?)
}
}
impl BatchDatabase for Tree {