From 100cbf4b0cd10782f7deda15dc8bb4933fadafdc Mon Sep 17 00:00:00 2001 From: asddongmen <414110582@qq.com> Date: Fri, 5 Nov 2021 16:25:22 +0800 Subject: [PATCH] http_errors: resolve comments --- cdc/capture/http_errors.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cdc/capture/http_errors.go b/cdc/capture/http_errors.go index f168b1fa513..9fbe07fb4ff 100644 --- a/cdc/capture/http_errors.go +++ b/cdc/capture/http_errors.go @@ -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, @@ -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 }