From a6b8c9ef8a85d1d89db7e5e0d73a5dfd9f4cdccd Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 11 Oct 2018 13:38:09 +0800 Subject: [PATCH] remove custom pprof router --- router/routes/routes.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/router/routes/routes.go b/router/routes/routes.go index e5ba453..ec004f3 100644 --- a/router/routes/routes.go +++ b/router/routes/routes.go @@ -105,8 +105,5 @@ func SetRoutes(r *gin.Engine) { } // set pprof router - popts := &pprof.Options{ - RoutePrefix: "/dev/pprof", - } - pprof.Register(r, popts) + pprof.Register(r, nil) }