Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Oct 10, 2024
1 parent 565d707 commit 765b33c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions kernel/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,11 @@ fn list_log_files_with_checkpoint(
}

debug_assert!(
commit_files.windows(2).all(|cfs| cfs[0].version <= cfs[1].version),
"fs_client.list_from() didn't return a sorted listing! {:?}", commit_files
commit_files
.windows(2)
.all(|cfs| cfs[0].version <= cfs[1].version),
"fs_client.list_from() didn't return a sorted listing! {:?}",
commit_files
);
// We assume listing returned ordered, we want reverse order
let commit_files = commit_files.into_iter().rev().collect();
Expand Down Expand Up @@ -447,8 +450,11 @@ fn list_log_files(
commit_files.retain(|f| f.version as i64 > max_checkpoint_version);

debug_assert!(
commit_files.windows(2).all(|cfs| cfs[0].version <= cfs[1].version),
"fs_client.list_from() didn't return a sorted listing! {:?}", commit_files
commit_files
.windows(2)
.all(|cfs| cfs[0].version <= cfs[1].version),
"fs_client.list_from() didn't return a sorted listing! {:?}",
commit_files
);
// We assume listing returned ordered, we want reverse order
let commit_files = commit_files.into_iter().rev().collect();
Expand Down

0 comments on commit 765b33c

Please sign in to comment.