From 3633ee8c631880e958a473665b4375734ff6589a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 4 Apr 2018 23:20:30 +0100 Subject: Fix earlier logging patch `@cached` doesn't work on decorated functions, because it uses inspection on the target to calculate the number of arguments. --- synapse/storage/roommember.py | 3 +-- 1 file changed, 1 insertion(+), 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 = ( -- cgit 1.4.1