Skip to content

Commit

Permalink
Make sure to reset election timer on catching up
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Aug 25, 2023
1 parent c9b5b32 commit 2669f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,7 @@ func (n *raft) runAsFollower() {
if n.catchupStalled() {
n.cancelCatchup()
}
n.resetElectionTimeout()
n.Unlock()
} else {
n.switchToCandidate()
Expand Down

0 comments on commit 2669f77

Please sign in to comment.