Skip to content

Commit

Permalink
storage: use expect for db write
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Nov 15, 2023
1 parent 23b4841 commit 7d2830a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/storage/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ impl Storage {

for prefix in default_prefixes {
if !prefixes.contains(&prefix) {
db.put_cf(cf_config, prefix.as_bytes(), b"").unwrap();
db.put_cf(cf_config, prefix.as_bytes(), b"")
.expect("can write to db");
prefixes.push(prefix);
}
}
Expand Down

0 comments on commit 7d2830a

Please sign in to comment.