actix-raft/memstore/src
Anthony Dodd 2ede56fb38
Improve startup semantics for recovered/restarted nodes.
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.
2021-01-17 09:17:24 -06:00
..
lib.rs Improve startup semantics for recovered/restarted nodes. 2021-01-17 09:17:24 -06:00
test.rs Improve startup semantics for recovered/restarted nodes. 2021-01-17 09:17:24 -06:00