Skip to content

Commit

Permalink
style: run make format
Browse files Browse the repository at this point in the history
Signed-off-by: wangnengjie <751614701@qq.com>
  • Loading branch information
wangnengjie committed Sep 7, 2022
1 parent a3e5264 commit 36552fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ops/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ impl Transaction {
let mut entries: Vec<_> = self.pending_writes.values().cloned().collect();
entries.sort_by(|x, y| {
let cmp = COMPARATOR.compare_key(&x.key, &y.key);
if reversed { cmp.reverse() } else { cmp }
if reversed {
cmp.reverse()
} else {
cmp
}
});

Some(PendingWritesIterator::new(self.read_ts, reversed, entries))
Expand Down

0 comments on commit 36552fe

Please sign in to comment.