Skip to content

Commit

Permalink
fix-alibaba#2810.modify the judge logic when send beat in raftcore
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed May 15, 2020
1 parent 4baaef4 commit d72d059
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,10 @@ public void run() {

public void sendBeat() throws IOException, InterruptedException {
RaftPeer local = peers.local();
if (local.state != RaftPeer.State.LEADER && !STANDALONE_MODE) {
if (STANDALONE_MODE){
return;
}
if (local.state != RaftPeer.State.LEADER) {
return;
}

Expand Down

0 comments on commit d72d059

Please sign in to comment.