Skip to content

Commit

Permalink
http_errors: resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen committed Nov 5, 2021
1 parent 22a5187 commit 100cbf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdc/capture/http_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
cerror "github.com/pingcap/ticdc/pkg/errors"
)

// HTTPBadRequestError is some errors that will cause a BadRequestError in http handler
var HTTPBadRequestError = []*errors.Error{
// httpBadRequestError is some errors that will cause a BadRequestError in http handler
var httpBadRequestError = []*errors.Error{
cerror.ErrAPIInvalidParam, cerror.ErrSinkURIInvalid, cerror.ErrStartTsBeforeGC,
cerror.ErrChangeFeedNotExists, cerror.ErrTargetTsBeforeStartTs, cerror.ErrTableIneligible,
cerror.ErrFilterRuleInvalid, cerror.ErrChangefeedUpdateRefused, cerror.ErrMySQLConnectionError,
Expand All @@ -33,7 +33,7 @@ func IsHTTPBadRequestError(err error) bool {
if err == nil {
return false
}
for _, e := range HTTPBadRequestError {
for _, e := range httpBadRequestError {
if e.Equal(err) {
return true
}
Expand Down

0 comments on commit 100cbf4

Please sign in to comment.