summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-04 23:20:30 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-04 23:20:30 +0100
commit3633ee8c631880e958a473665b4375734ff6589a (patch)
tree8d6c0a1c949cadf443c995c8adeda4bcad11518b
parentLogging for get_users_in_room (diff)
downloadsynapse-3633ee8c631880e958a473665b4375734ff6589a.tar.xz
Fix earlier logging patch
`@cached` doesn't work on decorated functions, because it uses inspection on
the target to calculate the number of arguments.
-rw-r--r--synapse/storage/roommember.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 039188a3be..c5cdf98f90 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -65,8 +65,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
         hosts = frozenset(get_domain_from_id(user_id) for user_id in user_ids)
         defer.returnValue(hosts)
 
-    @cached(max_entries=100000, iterable=True)
-    @defer.inlineCallbacks
+    @cachedInlineCallbacks(max_entries=100000, iterable=True)
     def get_users_in_room(self, room_id):
         def f(txn):
             sql = (