Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Oct 23, 2023
1 parent a1163aa commit 3070786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions store/storage/rocksdb/comparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/client/grpc/cmtservice/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3070786

Please sign in to comment.