Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen committed May 5, 2022
1 parent 4122dc4 commit ff2435b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cdc/api/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func verifyCreateChangefeedConfig(
// Ensure the start ts is valid in the next 1 hour.
const ensureTTL = 60 * 60
if err := gc.EnsureChangefeedStartTsSafety(
ctx, capture.PDClient,
ctx,
upStream.PDClient,
model.DefaultChangeFeedID(changefeedConfig.ID),
ensureTTL, changefeedConfig.StartTS); err != nil {
if !cerror.ErrStartTsBeforeGC.Equal(err) {
Expand Down
3 changes: 0 additions & 3 deletions cdc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
"github.com/pingcap/errors"
"github.com/pingcap/log"

tidbkv "github.com/pingcap/tidb/kv"
"github.com/pingcap/tiflow/cdc/contextutil"
"github.com/prometheus/client_golang/prometheus"
"go.etcd.io/etcd/client/pkg/v3/logutil"
clientv3 "go.etcd.io/etcd/client/v3"
Expand All @@ -48,7 +46,6 @@ import (
"github.com/pingcap/tiflow/pkg/httputil"
"github.com/pingcap/tiflow/pkg/p2p"
"github.com/pingcap/tiflow/pkg/tcpserver"
"github.com/pingcap/tiflow/pkg/version"
p2pProto "github.com/pingcap/tiflow/proto/p2p"
)

Expand Down

0 comments on commit ff2435b

Please sign in to comment.