chore: remove duplicate word in comments

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
Abirdcfly 2022-08-27 13:39:48 +08:00
parent 9c8326bb50
commit 08a9d1da07
No known key found for this signature in database
GPG Key ID: A4EA876831B0458B
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ func TestLogMaybeAppend(t *testing.T) {
lastterm, lastindex, lastindex + 2, []pb.Entry{{Index: lastindex + 1, Term: 4}, {Index: lastindex + 2, Term: 4}},
lastindex + 2, true, lastindex + 2, false,
},
// match with the the entry in the middle
// match with the entry in the middle
{
lastterm - 1, lastindex - 1, lastindex, []pb.Entry{{Index: lastindex, Term: 4}},
lastindex, true, lastindex, false,

View File

@ -1691,7 +1691,7 @@ func (r *raft) switchToConfig(cfg tracker.Config, prs tracker.ProgressMap) pb.Co
r.maybeSendAppend(id, false /* sendIfEmpty */)
})
}
// If the the leadTransferee was removed or demoted, abort the leadership transfer.
// If the leadTransferee was removed or demoted, abort the leadership transfer.
if _, tOK := r.prs.Config.Voters.IDs()[r.leadTransferee]; !tOK && r.leadTransferee != 0 {
r.abortLeaderTransfer()
}

View File

@ -685,7 +685,7 @@ func TestKVRestore(t *testing.T) {
keysBefore := readGaugeInt(keysGauge)
s.Close()
// ns should recover the the previous state from backend.
// ns should recover the previous state from backend.
ns := NewStore(zaptest.NewLogger(t), b, &lease.FakeLessor{}, StoreConfig{})
if keysRestore := readGaugeInt(keysGauge); keysBefore != keysRestore {