web api: Delete unnecessary conversion.
@@ -311,8 +311,8 @@ func (api *API) Register(r *route.Router) {
r.Get("/status/flags", wrap(api.serveFlags))
r.Get("/status/tsdb", wrap(api.serveTSDBStatus))
r.Get("/status/walreplay", api.serveWALReplayStatus)
- r.Post("/read", api.ready(http.HandlerFunc(api.remoteRead)))
- r.Post("/write", api.ready(http.HandlerFunc(api.remoteWrite)))
+ r.Post("/read", api.ready(api.remoteRead))
+ r.Post("/write", api.ready(api.remoteWrite))
r.Get("/alerts", wrap(api.alerts))
r.Get("/rules", wrap(api.rules))
