chore: remove repetitive words (#20180)
This commit is contained in:
parent
e141457f76
commit
00ec23cdbe
@ -65,7 +65,7 @@ func TestDatabase_ReverseIterator(t *testing.T) {
|
||||
// seek past domain, which should make the iterator invalid and produce an error
|
||||
require.False(t, iter.Valid())
|
||||
|
||||
// reverse iterator with with a start and end domain
|
||||
// reverse iterator with a start and end domain
|
||||
iter2, err := db.ReverseIterator(storeKey1, 1, []byte("key010"), []byte("key019"))
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ func TestDatabase_ReverseIterator(t *testing.T) {
|
||||
// seek past domain, which should make the iterator invalid and produce an error
|
||||
require.False(t, iter.Valid())
|
||||
|
||||
// reverse iterator with with a start and end domain
|
||||
// reverse iterator with a start and end domain
|
||||
iter2, err := db.ReverseIterator(storeKey1, 1, []byte("key010"), []byte("key019"))
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@ -273,7 +273,7 @@ func (s *StorageTestSuite) TestDatabase_Iterator() {
|
||||
s.Require().False(itr.Valid())
|
||||
}
|
||||
|
||||
// iterator with with a start and end domain over multiple versions
|
||||
// iterator with a start and end domain over multiple versions
|
||||
for v := uint64(1); v < 5; v++ {
|
||||
itr2, err := db.Iterator(storeKey1Bytes, v, []byte("key010"), []byte("key019"))
|
||||
s.Require().NoError(err)
|
||||
|
||||
@ -255,7 +255,7 @@ var timeSize = len(FormatTimeBytes(time.Time{}))
|
||||
|
||||
func (timeKeyCodec) Decode(buffer []byte) (int, time.Time, error) {
|
||||
if len(buffer) != timeSize {
|
||||
return 0, time.Time{}, fmt.Errorf("invalid time buffer buffer size")
|
||||
return 0, time.Time{}, fmt.Errorf("invalid time buffer size")
|
||||
}
|
||||
t, err := ParseTimeBytes(buffer)
|
||||
if err != nil {
|
||||
|
||||
@ -156,7 +156,7 @@ func (coin DecCoin) IsValid() bool {
|
||||
// DecCoins defines a slice of coins with decimal values
|
||||
type DecCoins []DecCoin
|
||||
|
||||
// NewDecCoins constructs a new coin set with with decimal values
|
||||
// NewDecCoins constructs a new coin set with decimal values
|
||||
// from DecCoins. The provided coins will be sanitized by removing
|
||||
// zero coins and sorting the coin set. A panic will occur if the coin set is not valid.
|
||||
func NewDecCoins(decCoins ...DecCoin) DecCoins {
|
||||
|
||||
@ -54,7 +54,7 @@ type AppModuleBasic interface {
|
||||
|
||||
// AppModule is the form for an application module. Most of
|
||||
// its functionality has been moved to extension interfaces.
|
||||
// Deprecated: use appmodule.AppModule with a combination of extension interfaces interfaces instead.
|
||||
// Deprecated: use appmodule.AppModule with a combination of extension interfaces instead.
|
||||
type AppModule interface {
|
||||
HasName
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ func TestSnapshotter(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Empty(t, txm2.Size())
|
||||
|
||||
// restore with with height < ttl which should result in all unordered txs synced
|
||||
// restore with height < ttl which should result in all unordered txs synced
|
||||
txm3 := unorderedtx.NewManager(dataDir)
|
||||
s3 := unorderedtx.NewSnapshotter(txm3)
|
||||
err = s3.RestoreExtension(50, unorderedtx.SnapshotFormat, pr)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user