Jing Yang
|
784af923ed
Remove the unused mark_term() method.
|
hace 3 años |
Jing Yang
|
ed7ed114bb
Add a liveness test in which the previous leader is connected to one follower.
|
hace 3 años |
Jing Yang
|
9b2261a4de
Refine test term asserts in the prevote test.
|
hace 3 años |
Jing Yang
|
08de267389
Take clippy advice.
|
hace 3 años |
Jing Yang
|
a3081420cb
Add a test for prevote.
|
hace 3 años |
Jing Yang
|
dafff123b4
Replace unnecessary clones with references in sync_log_entries.rs.
|
hace 3 años |
Jing Yang
|
f25f9a258e
Refine comments in a few places.
|
hace 3 años |
Jing Yang
|
ebdb3a0244
Use let-else intead of match and if-let.
|
hace 3 años |
Jing Yang
|
4e5d810997
Updates on stale comments.
|
hace 3 años |
Jing Yang
|
e05a2827dd
Mark the "prevote" task as done in README.
|
hace 3 años |
Jing Yang
|
0bf0fcc0dd
Add the prevote state and check it after prevote is done.
|
hace 3 años |
Jing Yang
|
634e631085
Add a prevote phase to election: merge branch 'prevote' #3
|
hace 3 años |
Jing Yang
|
16c2187ab3
Implement the prevote phase on both client and server side.
|
hace 3 años |
Jing Yang
|
18cbd8e0c6
Create a dedicated struct for becoming the next leader.
|
hace 3 años |
Jing Yang
|
aab761204b
Separate the async part from the rest of the function.
|
hace 3 años |
Jing Yang
|
c3c3f41b5b
Make count_votes_until_cancelled() a member function.
|
hace 3 años |
Jing Yang
|
3c0ef3495f
Refactor: Separate spawn_request_votes().
|
hace 3 años |
Jing Yang
|
26a25ba34c
Refactor: split the quorum counting function.
|
hace 3 años |
Jing Yang
|
18103d0458
Cancel election at shutdown.
|
hace 3 años |
Jing Yang
|
b325a297ae
Add a comment in election code.
|
hace 3 años |
Jing Yang
|
10ac3235eb
Make run_election_timer() a simple function.
|
hace 3 años |
Jing Yang
|
94f4ab4da2
Clear context after detach.
|
hace 3 años |
Jing Yang
|
86a564d441
Run `cargo update` on durio.
|
hace 3 años |
Jing Yang
|
199670a0aa
Run `cargo update` on durio.
|
hace 3 años |
Jing Yang
|
c8a63eca38
Run cargo update on durio.
|
hace 3 años |
Jing Yang
|
90048c76fe
Take clippy advice in durio.
|
hace 3 años |
Jing Yang
|
e4ec9a63ee
Merge branch 'remote_context_impl'
|
hace 3 años |
Jing Yang
|
7329e47622
Add rpc_client and beat_ticker to the context.
|
hace 3 años |
Jing Yang
|
169ccf5c88
Add tests for RemoteContext.
|
hace 3 años |
Jing Yang
|
debff77952
Use a safer static ref to replace the pointer.
|
hace 3 años |