mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
fix formatting of raft debug log
Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
@@ -3695,7 +3695,8 @@ func (n *raft) processVoteRequest(vr *voteRequest) error {
|
||||
// If this is a higher term go ahead and stepdown.
|
||||
if vr.term > n.term {
|
||||
if n.state != Follower {
|
||||
n.debug("Stepping down from %s, detected higher term: %d vs %d", vr.term, n.term, strings.ToLower(n.state.String()))
|
||||
n.debug("Stepping down from %s, detected higher term: %d vs %d",
|
||||
strings.ToLower(n.state.String()), vr.term, n.term)
|
||||
n.stepdown.push(noLeader)
|
||||
n.term = vr.term
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user