From 4ac67cead907968fd688c8fa1d769cc24dd4d277 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Thu, 7 Dec 2023 15:00:42 +0100 Subject: [PATCH] fix: pprof --- service/httppprof_pprof.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/httppprof_pprof.go b/service/httppprof_pprof.go index ca020c4..9336e0c 100644 --- a/service/httppprof_pprof.go +++ b/service/httppprof_pprof.go @@ -17,17 +17,17 @@ const ( DefaultHTTPPProfPath = "/debug/pprof" ) -func NewHTTPPProf(l *zap.Logger, name, addr, path string) *ServiceHTTP { +func NewHTTPPProf(l *zap.Logger, name, addr, path string) *HTTP { handler := http.NewServeMux() handler.HandleFunc(path+"/", pprof.Index) handler.HandleFunc(path+"/cmdline", pprof.Cmdline) handler.HandleFunc(path+"/profile", pprof.Profile) handler.HandleFunc(path+"/symbol", pprof.Symbol) handler.HandleFunc(path+"/trace", pprof.Trace) - return NewServiceHTTP(l, name, addr, handler) + return NewHTTP(l, name, addr, handler) } -func NewDefaultHTTPPProf() *ServiceHTTP { +func NewDefaultHTTPPProf() *HTTP { return NewHTTPPProf( log.Logger(), DefaultHTTPPProfName,