From e30c52308963a9807ddd7fbd86204deb02d22bd0 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 13 Jan 2021 23:00:25 +0000 Subject: [PATCH] Per request cache for now as we don't do batching correclty --- setup/mscs/msc2946/msc2946.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mscs/msc2946/msc2946.go b/setup/mscs/msc2946/msc2946.go index f1314f414..a2d801e4d 100644 --- a/setup/mscs/msc2946/msc2946.go +++ b/setup/mscs/msc2946/msc2946.go @@ -94,8 +94,8 @@ func Enable( } func spacesHandler(db Database, rsAPI roomserver.RoomserverInternalAPI) func(*http.Request, *userapi.Device) util.JSONResponse { - inMemoryBatchCache := make(map[string]set) return func(req *http.Request, device *userapi.Device) util.JSONResponse { + inMemoryBatchCache := make(map[string]set) // Extract the room ID from the request. Sanity check request data. params, err := httputil.URLDecodeMapValues(mux.Vars(req)) if err != nil {