Skip to content

Commit

Permalink
fix: node election timeout if node is leader
Browse files Browse the repository at this point in the history
  • Loading branch information
vasusharma7 committed Mar 24, 2024
1 parent 198b00d commit 65792b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class Node {
-1
);
this.heartbeatInterval = setInterval(() => {
this.resetElectionInterval();
this.broadcastFn(
this.nodeId,
{
Expand Down

0 comments on commit 65792b1

Please sign in to comment.