mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 06:44:41 +00:00
commit
6f5b783da9
2
vendor/github.com/hashicorp/raft/raft.go
generated
vendored
2
vendor/github.com/hashicorp/raft/raft.go
generated
vendored
@ -648,7 +648,7 @@ func (r *Raft) runFollower() {
|
|||||||
} else {
|
} else {
|
||||||
r.logger.Printf("[WARN] raft: Heartbeat timeout reached, starting election")
|
r.logger.Printf("[WARN] raft: Heartbeat timeout reached, starting election")
|
||||||
|
|
||||||
metrics.IncrCounter([]string{"raft", "transition", "heartbeat_timout"}, 1)
|
metrics.IncrCounter([]string{"raft", "transition", "heartbeat_timeout"}, 1)
|
||||||
r.setState(Candidate)
|
r.setState(Candidate)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user