Skip to content

Commit

Permalink
chore: fix simulation & lint error
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <[email protected]>
  • Loading branch information
iGxnon committed Sep 26, 2023
1 parent d0bbca3 commit c070a29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simulation/src/curp_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ impl CurpGroup {
StorageConfig::Memory,
);
store_c.lock().replace(Arc::clone(&ce.store));
let is_leader = "S0" == name;
// we will restart the old leader.
// after the reboot, it may no longer be the leader.
let is_leader = false;

Rpc::run_from_addr(
cluster_info.clone(),
Expand Down

0 comments on commit c070a29

Please sign in to comment.