Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zajko committed Feb 13, 2025
1 parent 29353ee commit 901da02
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions node/src/components/consensus/protocols/zug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1742,14 +1742,12 @@ impl<C: Context + 'static> Zug<C> {
debug!(our_idx, %now, %current_timeout, "update_round - schedule update 2");
outcomes.extend(self.schedule_update(current_timeout));
}
} else {
if !voted_on_round_outcome {
// If we weren't able to come to a voting conclusion we need to reschedule
// the check in future.
debug!(round_id, "Scheduling proposal recheck");
let updated_timestamp = now.saturating_add(self.proposal_timeout());
outcomes.extend(self.schedule_update(updated_timestamp));
}
} else if !voted_on_round_outcome {
// If we weren't able to come to a voting conclusion we need to reschedule
// the check in future.
debug!(round_id, "Scheduling proposal recheck");
let updated_timestamp = now.saturating_add(self.proposal_timeout());
outcomes.extend(self.schedule_update(updated_timestamp));
}
} else {
error!(our_idx, "No suitable parent for current round");
Expand Down

0 comments on commit 901da02

Please sign in to comment.