From 69b49530d1379828ffc6457d0a59c675fa498e32 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Thu, 11 Jul 2019 02:03:59 +0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- clientapi/routing/getevent.go | 2 +- clientapi/routing/routing.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/getevent.go b/clientapi/routing/getevent.go index 2859c7511..5d2ea4fa8 100644 --- a/clientapi/routing/getevent.go +++ b/clientapi/routing/getevent.go @@ -123,7 +123,7 @@ func GetEvent( return r.proceedWithStateEvents(stateResp.StateEvents) } -// proceedWithMissingState tries to proceed by fetching the missing states with +// proceedWithMissingState tries to proceed by fetching the missing state over // federation. // Note: It's not guaranteed that the server(s) we query have the state events. func (r *getEventRequest) proceedWithMissingState() util.JSONResponse { diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index 28d07a508..1131dec25 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -117,7 +117,7 @@ func Setup( }), ).Methods(http.MethodPut, http.MethodOptions) r0mux.Handle("/rooms/{roomID}/event/{eventID}", - common.MakeAuthAPI("room_get_event", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { + common.MakeAuthAPI("rooms_get_event", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse { vars := mux.Vars(req) return GetEvent(req, device, vars["roomID"], vars["eventID"], cfg, queryAPI, federation, keyRing) }),