From 73c839155f9d105c8162156d35dc24407b564e3a Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Sun, 19 Nov 2023 11:37:10 +0800 Subject: [PATCH] polish Signed-off-by: Ping Yu --- cdc/cdc/kv/store_op.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cdc/cdc/kv/store_op.go b/cdc/cdc/kv/store_op.go index 5e2b2049..60474590 100644 --- a/cdc/cdc/kv/store_op.go +++ b/cdc/cdc/kv/store_op.go @@ -19,7 +19,6 @@ import ( "github.com/pingcap/errors" "github.com/pingcap/log" - "github.com/pingcap/tidb/kv" tikvconfig "github.com/tikv/client-go/v2/config" "github.com/tikv/client-go/v2/oracle" "github.com/tikv/client-go/v2/tikv" @@ -95,8 +94,7 @@ func (s *StorageWithCurVersionCache) GetCachedCurrentVersion() (version uint64, if err != nil { return } - ver := kv.NewVersion(ts) - entry.ts = ver.Ver + entry.ts = ts entry.lastUpdated = time.Now() }