Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Oct 2, 2024
1 parent ff575aa commit af7c9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raftify/src/storage/heed_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl HeedStorageCore {
return Ok(());
}

let mut first_index = self.first_index(writer)?;
let first_index = self.first_index(writer)?;

if first_index > entries[0].index {
self.logger.fatal(&format!(
Expand Down Expand Up @@ -895,7 +895,7 @@ mod test {
vec![new_entry(2, 3), new_entry(3, 3), new_entry(4, 5)],
None,
),
// // truncate the existing entries and append
// truncate the existing entries and append
// (
// vec![new_entry(4, 5)],
// Some(vec![new_entry(3, 3), new_entry(4, 5)]),
Expand Down

0 comments on commit af7c9f2

Please sign in to comment.