diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-04-04 23:20:30 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-04-04 23:20:30 +0100 |
commit | 3633ee8c631880e958a473665b4375734ff6589a (patch) | |
tree | 8d6c0a1c949cadf443c995c8adeda4bcad11518b | |
parent | Logging for get_users_in_room (diff) | |
download | synapse-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.py | 3 |
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 = ( |