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-06-22 15:58:15 +0100
commitce9d0b1d0c0b362194138093004a7bc7ce147cc2 (patch)
tree1454722dc4d17b42e28bc889eec51c051dabb2ce
parentLogging for get_users_in_room (diff)
downloadsynapse-ce9d0b1d0c0b362194138093004a7bc7ce147cc2.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 3032f10185..682c637c04 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py
@@ -67,8 +67,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 = (