From 110a76085a244c854d5ce8d11b1915e006801cf4 Mon Sep 17 00:00:00 2001 From: wego1236 <844740374@qq.com> Date: Thu, 14 Sep 2023 15:14:14 +0800 Subject: [PATCH] modify comments at line 1630, change index 9 to index 6 on reject Hint Signed-off-by: wego1236 <844740374@qq.com> --- src/raft.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raft.rs b/src/raft.rs index 5af1eca4..7abdf28e 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -1627,7 +1627,7 @@ impl Raft { // 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,