Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Review grumbles
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Dec 19, 2019
1 parent f7d9a77 commit d496b03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/migration-rocksdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,8 @@ impl Manager {
return Err(other_io_err("Migration impossible"));
};

let columns = migrations.get(0).map(|m| m.pre_columns()).unwrap_or(1);

trace!(target: "migration", "Expecting database to contain {:?} columns", columns);
let columns = migrations.first().expect("checked empty above; qed").pre_columns();
trace!(target: "migration", "Expecting database to contain {} columns", columns);
let mut db_config = DatabaseConfig {
max_open_files: 64,
compaction: config.compaction_profile,
Expand Down

0 comments on commit d496b03

Please sign in to comment.