mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 14:03:09 -06:00
Fix typo
This commit is contained in:
parent
0dce7f483d
commit
7c2c3a1216
|
|
@ -148,6 +148,6 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client, cfg config.ClientAPI
|
||||||
|
|
||||||
// make a util.JSONRequestHandler function into an http.Handler.
|
// make a util.JSONRequestHandler function into an http.Handler.
|
||||||
func makeAPI(metricsName string, f func(*http.Request) util.JSONResponse) http.Handler {
|
func makeAPI(metricsName string, f func(*http.Request) util.JSONResponse) http.Handler {
|
||||||
h := util.NewJSONRequestHander(f)
|
h := util.NewJSONRequestHandler(f)
|
||||||
return prometheus.InstrumentHandler(metricsName, util.MakeJSONAPI(h))
|
return prometheus.InstrumentHandler(metricsName, util.MakeJSONAPI(h))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue