Skip to content

Commit

Permalink
1/3: Move configs into separate module
Browse files Browse the repository at this point in the history
This moves DBConfig and DBRevConfig into db::config
allowing these configs to be fetched from elsewhere
  • Loading branch information
rkuris committed Aug 1, 2023
1 parent 6b60e95 commit b6c84b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firewood/examples/rev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl RevisionTracker {
fn get_revision(&self, index: usize) -> Revision<SharedStore> {
self.db
.get_revision(&self.hashes[index], None)
.expect(&format!("revision-{index} should exist"))
.unwrap_or_else(|| panic!("revision-{index} should exist"))
}
}

Expand Down

0 comments on commit b6c84b8

Please sign in to comment.