Skip to content

core: track timeouts by step, not type#5

Open
cason wants to merge 2 commits intoduplicated-timeouts-smrfrom
duplicated-timeouts-steps
Open

core: track timeouts by step, not type#5
cason wants to merge 2 commits intoduplicated-timeouts-smrfrom
duplicated-timeouts-steps

Conversation

@cason
Copy link
Owner

@cason cason commented Mar 2, 2026

We can use Step enum to index timeouts.

/// Tracks which consensus timeouts have already been scheduled in the current round.
/// The step of consensus in this round
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(usize)]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant