From 7845baf27e95fd1f90af3f7ffcf6b41dffdcf313 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Tue, 12 Nov 2024 15:22:08 +0800 Subject: [PATCH] fix build --- versiondb/tsrocksdb/store.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index 860df4323e..683011c537 100644 --- a/versiondb/tsrocksdb/store.go +++ b/versiondb/tsrocksdb/store.go @@ -304,8 +304,7 @@ func (s Store) loadWrongData(storeName string) ([]KVPairWithTS, error) { var pairs []KVPairWithTS for ; iter.Valid(); iter.Next() { - ts := iter.Timestamp() - if binary.LittleEndian.Uint64(ts) != 0 { + if binary.LittleEndian.Uint64(iter.Timestamp()) != 0 { // FIXME: https://github.com/crypto-org-chain/cronos/issues/1689 continue }