Skip to content

Commit

Permalink
*: fix check error
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen committed Dec 23, 2021
1 parent d901d13 commit bfea94d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion cdc/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func (s *Server) handleResignOwner(w http.ResponseWriter, req *http.Request) {
return nil
})
handleOwnerResp(w, err)
return
}

func (s *Server) handleChangefeedAdmin(w http.ResponseWriter, req *http.Request) {
Expand Down
2 changes: 0 additions & 2 deletions cdc/http_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func (s *Server) handleDebugInfo(w http.ResponseWriter, req *http.Request) {
s.capture.WriteDebugInfo(w)
fmt.Fprintf(w, "\n\n*** etcd info ***:\n\n")
s.writeEtcdInfo(req.Context(), s.etcdClient, w)
return
}

func (s *Server) handleStatus(w http.ResponseWriter, req *http.Request) {
Expand All @@ -131,7 +130,6 @@ func (s *Server) handleStatus(w http.ResponseWriter, req *http.Request) {
st.IsOwner = s.capture.IsOwner()
}
writeData(w, st)
return
}

func writeInternalServerError(w http.ResponseWriter, err error) {
Expand Down
2 changes: 0 additions & 2 deletions cdc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"os"
"path/filepath"
"strings"
"sync"
"time"

"github.com/pingcap/errors"
Expand Down Expand Up @@ -55,7 +54,6 @@ const (
type Server struct {
capture *capture.Capture

ownerLock sync.RWMutex
statusServer *http.Server
pdClient pd.Client
etcdClient *kv.CDCEtcdClient
Expand Down

0 comments on commit bfea94d

Please sign in to comment.