Verified Commit 35c57070 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Simplify handler registration

parent c17a906a
Pipeline #29661397 passed with stages
in 28 minutes and 19 seconds
......@@ -406,7 +406,7 @@ func (mr *RunCommand) serveMetrics(mux *http.ServeMux) {
}
func (mr *RunCommand) serveDebugData(mux *http.ServeMux) {
mux.Handle("/debug/jobs/list", http.HandlerFunc(mr.buildsHelper.ListJobsHandler))
mux.HandleFunc("/debug/jobs/list", mr.buildsHelper.ListJobsHandler)
}
func (mr *RunCommand) setupMetricsAndDebugServer() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment