Skip to content

Commit

Permalink
allow --parallel on empty databases
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Samuels committed Aug 2, 2024
1 parent a5b3dab commit 3332231
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/database_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ impl<'d> DatabaseRecordReader<'d> {
let b = filter.compressed_bytes();
(filter, b)
})
.max_by_key(|(_, rsize)| *rsize)
.unwrap();
.max_by_key(|(_, rsize)| *rsize)?;

// biggest_reader is a StringKeyRangeReader

Expand Down

0 comments on commit 3332231

Please sign in to comment.