Skip to content

Commit

Permalink
api: remove duplicate /debug/pprof/trace register (#8554)
Browse files Browse the repository at this point in the history
close #8553

Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 authored Aug 22, 2024
1 parent cbb5a5b commit b132ea6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package server
import (
"context"
"net/http"
"net/http/pprof"
"path/filepath"
"strings"

Expand Down Expand Up @@ -133,10 +132,6 @@ func combineBuilderServerHTTPService(ctx context.Context, svr *Server, serviceBu

apiService.UseHandler(router)
userHandlers[pdAPIPrefix] = apiService

// fix issue https://github.com/tikv/pd/issues/7253
// FIXME: remove me after upgrade
userHandlers["/debug/pprof/trace"] = http.HandlerFunc(pprof.Trace)
return userHandlers, nil
}

Expand Down

0 comments on commit b132ea6

Please sign in to comment.