Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Nov 19, 2023
1 parent 30a7631 commit 73c8391
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cdc/cdc/kv/store_op.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit 73c8391

Please sign in to comment.