From aa2fd559f4a91cf2ebfa421cde1e67ecb82934d2 Mon Sep 17 00:00:00 2001 From: houpo-bob Date: Sat, 26 Jul 2025 01:31:21 +0800 Subject: [PATCH] chore: remove redundant words Signed-off-by: houpo-bob --- batch_test.go | 2 +- cmd/iaviewer/README.md | 2 +- nodedb.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/batch_test.go b/batch_test.go index 17122043d..a48bd2c6e 100644 --- a/batch_test.go +++ b/batch_test.go @@ -40,7 +40,7 @@ func testBatchWithFlusher(t *testing.T) { batchWithFlusher := NewBatchWithFlusher(db, DefaultOptions().FlushThreshold) - // we'll try to to commit 10MBs (1000 * 10KBs each entries) of data into the db + // we'll try to commit 10MBs (1000 * 10KBs each entries) of data into the db for keyNonce := uint16(0); keyNonce < 1000; keyNonce++ { // each value is 10 KBs of zero bytes key := makeKey(keyNonce) diff --git a/cmd/iaviewer/README.md b/cmd/iaviewer/README.md index 1e5d94ade..8a57f56c6 100644 --- a/cmd/iaviewer/README.md +++ b/cmd/iaviewer/README.md @@ -42,7 +42,7 @@ Now, if you run `ls -l`, you should see two directories... `bns-a.db` and `bns-b iaviewer versions ./bns-a.db "" ``` -This should print out a list of 20 versions of the code. Note the the iavl tree will persist multiple +This should print out a list of 20 versions of the code. Note the iavl tree will persist multiple historical versions, which is a great aid in forensic queries (thanks Tendermint team!). For the rest of the cases, we will consider only the last two versions, 190257 (last one where they match) and 190258 (where they are different). diff --git a/nodedb.go b/nodedb.go index 6e9b1e2a4..8384a80d7 100644 --- a/nodedb.go +++ b/nodedb.go @@ -464,7 +464,7 @@ func (ndb *nodeDB) deleteVersion(version int64, cache *rootkeyCache) error { } if errors.Is(err, ErrVersionDoesNotExist) { - ndb.logger.Error("Error while pruning, moving on the the next version in the store", "version missing", version, "next version", version+1, "err", err) + ndb.logger.Error("Error while pruning, moving on the next version in the store", "version missing", version, "next version", version+1, "err", err) } if rootKey != nil {