Skip to content

Commit

Permalink
chore: Eliminate Madsim error
Browse files Browse the repository at this point in the history
Signed-off-by: feathercyc <[email protected]>
  • Loading branch information
GG2002 authored and mergify[bot] committed Mar 3, 2024
1 parent e00269e commit f12ba4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/curp/src/server/raw_curp/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl<C: Command> Log<C> {
// append log entries, will erase inconsistencies
// Find the index of the first entry that needs to be truncated
let mut pi = self.li_to_pi(prev_log_index + 1);
for entry in entries.iter() {
for entry in &entries {
if self
.entries
.get(pi)
Expand All @@ -306,7 +306,7 @@ impl<C: Command> Log<C> {
for entry in entries
.into_iter()
.skip(pi - self.li_to_pi(prev_log_index + 1))
.map(|x| Arc::new(x))
.map(Arc::new)
{
if matches!(entry.entry_data, EntryData::ConfChange(_)) {
conf_changes.push(Arc::clone(&entry));
Expand Down

0 comments on commit f12ba4c

Please sign in to comment.