mirror of https://github.com/vacp2p/pmtree.git
chore: add flush trait fn
This commit is contained in:
parent
4521c44065
commit
5635f93446
|
@ -28,4 +28,7 @@ pub trait Database {
|
||||||
|
|
||||||
/// Closes the db connection
|
/// Closes the db connection
|
||||||
fn close(&mut self) -> PmtreeResult<()>;
|
fn close(&mut self) -> PmtreeResult<()>;
|
||||||
|
|
||||||
|
/// Flushes writes to the db
|
||||||
|
fn flush(&mut self) -> PmtreeResult<()>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue