Skip to content

Commit

Permalink
refactor progress set to etcd/raft style
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <[email protected]>
  • Loading branch information
hicqu committed Nov 7, 2019
1 parent a5e0f13 commit c5067b4
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 239 deletions.
2 changes: 1 addition & 1 deletion examples/five_mem_node/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ fn on_ready(
ConfChangeType::RemoveNode => raft_group.raft.remove_node(node_id).unwrap(),
ConfChangeType::AddLearnerNode => raft_group.raft.add_learner(node_id).unwrap(),
}
let cs = raft_group.raft.prs().configuration().to_conf_state();
let cs = raft_group.raft.prs().to_conf_state();
store.wl().set_conf_state(cs);
} else {
// For normal proposals, extract the key-value pair and then
Expand Down
Loading

0 comments on commit c5067b4

Please sign in to comment.