From b132ea64d4f5fb5a53fa3fa18e5ed7c796e4d4ae Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Thu, 22 Aug 2024 10:58:44 +0800 Subject: [PATCH] api: remove duplicate `/debug/pprof/trace` register (#8554) close tikv/pd#8553 Signed-off-by: lhy1024 --- server/util.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/util.go b/server/util.go index 83455e2a6fe..b80a07ab28a 100644 --- a/server/util.go +++ b/server/util.go @@ -17,7 +17,6 @@ package server import ( "context" "net/http" - "net/http/pprof" "path/filepath" "strings" @@ -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 }