fix: tests

This commit is contained in:
rymnc 2023-07-28 14:03:50 +05:30
parent 4521c44065
commit d0651d4a1a
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,10 @@ impl Database for MemoryDB {
Ok(())
}
fn close(&mut self) -> PmtreeResult<()> {
Ok(())
}
}
impl Hasher for MyKeccak {

View File

@ -62,6 +62,12 @@ impl Database for MySled {
Ok(())
}
fn close(&mut self) -> PmtreeResult<()> {
self.0.flush().unwrap();
Ok(())
}
}
impl Hasher for MyKeccak {