Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish committed Nov 23, 2021
1 parent 4edce7c commit c6aa253
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/apiserver/debugapi/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ import (
"github.com/pingcap/tidb-dashboard/util/rest/fileswap"
)

const (
tokenIssuer = "debugAPI"
)

func registerRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service) {
ep := r.Group("/debug_api")
ep.GET("/download", s.Download)
Expand All @@ -34,15 +30,13 @@ func registerRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service) {

type Service struct {
Client *endpoint.Client

fSwap *fileswap.Handler
fSwap *fileswap.Handler
}

func newService(hp httpClientParam) *Service {
return &Service{
Client: endpoint.NewClient(newHTTPClient(hp), endpointDefs),

fSwap: fileswap.New(),
fSwap: fileswap.New(),
}
}

Expand Down

0 comments on commit c6aa253

Please sign in to comment.