diff --git a/store/storage/rocksdb/comparator.go b/store/storage/rocksdb/comparator.go index 3af816aba47..5da27d9121f 100644 --- a/store/storage/rocksdb/comparator.go +++ b/store/storage/rocksdb/comparator.go @@ -27,7 +27,7 @@ func CreateTSComparator() *grocksdb.Comparator { // // NOTICE: The behavior must be identical to RocksDB builtin comparator // "leveldb.BytewiseComparator.u64ts". -func compareTS(bz1 []byte, bz2 []byte) int { +func compareTS(bz1, bz2 []byte) int { ts1 := binary.LittleEndian.Uint64(bz1) ts2 := binary.LittleEndian.Uint64(bz2) @@ -48,7 +48,7 @@ func compareTS(bz1 []byte, bz2 []byte) int { // // NOTICE: The behavior must be identical to RocksDB builtin comparator // "leveldb.BytewiseComparator.u64ts". -func compare(a []byte, b []byte) int { +func compare(a, b []byte) int { ret := compareWithoutTS(a, true, b, true) if ret != 0 { return ret diff --git a/tests/e2e/client/grpc/cmtservice/service_test.go b/tests/e2e/client/grpc/cmtservice/service_test.go index 56d202a7b32..2a802c50304 100644 --- a/tests/e2e/client/grpc/cmtservice/service_test.go +++ b/tests/e2e/client/grpc/cmtservice/service_test.go @@ -8,10 +8,9 @@ import ( "fmt" "testing" - "github.com/stretchr/testify/suite" - "cosmossdk.io/simapp" _ "cosmossdk.io/x/gov" + "github.com/stretchr/testify/suite" "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" codectypes "github.com/cosmos/cosmos-sdk/codec/types"