aboutsummaryrefslogtreecommitdiff
path: root/setup/mscs/msc2946
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2021-01-13 23:00:25 +0000
committerKegan Dougal <kegan@matrix.org>2021-01-13 23:00:25 +0000
commite30c52308963a9807ddd7fbd86204deb02d22bd0 (patch)
tree0b5b7977591433d4ff91b78f6dbc81d2a3f2a898 /setup/mscs/msc2946
parent19392c8c6ba89cedff7c0dbdd1d7592d873adbde (diff)
Per request cache for now as we don't do batching correclty
Diffstat (limited to 'setup/mscs/msc2946')
-rw-r--r--setup/mscs/msc2946/msc2946.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/mscs/msc2946/msc2946.go b/setup/mscs/msc2946/msc2946.go
index f1314f41..a2d801e4 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 {