Skip to content

Commit

Permalink
refactor: Harmonizing pprof handler position
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jun 3, 2021
1 parent d1faadc commit ee859a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ketchup/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ func main() {
go schedulerApp.Start(healthApp.Done())
}

go pprofServer.Start("pprof", healthApp.End(), http.DefaultServeMux)
go promServer.Start("prometheus", healthApp.End(), prometheusApp.Handler())
go appServer.Start("http", healthApp.End(), httputils.Handler(appHandler, healthApp, recoverer.Middleware, prometheusApp.Middleware, owasp.New(owaspConfig).Middleware, cors.New(corsConfig).Middleware))
go pprofServer.Start("pprof", healthApp.End(), http.DefaultServeMux)

healthApp.WaitForTermination(appServer.Done())
server.GracefulWait(appServer.Done(), promServer.Done())
Expand Down

0 comments on commit ee859a0

Please sign in to comment.