remove custom pprof router

This commit is contained in:
Jay 2018-10-11 13:38:09 +08:00
parent bbea6a8fb3
commit a6b8c9ef8a

View File

@ -105,8 +105,5 @@ func SetRoutes(r *gin.Engine) {
} }
// set pprof router // set pprof router
popts := &pprof.Options{ pprof.Register(r, nil)
RoutePrefix: "/dev/pprof",
}
pprof.Register(r, popts)
} }