fatal db-error

This commit is contained in:
debris 2016-11-18 01:51:43 +01:00
parent a9fe6e5cdb
commit 12fbcf6735
1 changed files with 1 additions and 4 deletions

View File

@ -112,10 +112,7 @@ impl Storage {
/// get the value of the key in the database
fn get(&self, col: u32, key: &[u8]) -> Option<Bytes> {
match self.database.get(Some(col), key) {
Ok(val) => val,
Err(msg) => panic!("{}", msg),
}
self.database.get(Some(col), key).expect("fatal db error")
}
/// resolves hash for the block reference (which can be referenced by number or