mirror of https://github.com/railgun-rs/actix-raft
2ede56fb38
This adds `30s + rand_election_timeout` to a node's initial next_election_timeout when the node has recovered state after a restart. This helps to ensure that the node does not trigger a new election and begin driving up the Raft term before it can even properly communicate with peers. Fixed a few clippy lints. |
||
---|---|---|
.. | ||
lib.rs | ||
test.rs |