From f9c9bfa44ccca839338e3dedfca2b1f203900c97 Mon Sep 17 00:00:00 2001 From: howz97 <964701944@qq.com> Date: Sat, 2 Apr 2022 14:27:33 +0800 Subject: [PATCH] fix comment in raft.go --- raft/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/raft.go b/raft/raft.go index 5e3026ac8..14b5b76dd 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -1154,7 +1154,7 @@ func stepLeader(r *raft, m pb.Message) error { // the rejection's log term. If a probe at one of these indexes // succeeded, its log term at that index would match the leader's, // i.e. 3 or 5 in this example. But the follower already told the - // leader that it is still at term 2 at index 9, and since the + // leader that it is still at term 2 at index 6, and since the // log term only ever goes up (within a log), this is a contradiction. // // At index 1, however, the leader can draw no such conclusion,