Fix earlier logging patch

`@cached` doesn't work on decorated functions, because it uses inspection on
the target to calculate the number of arguments.
This commit is contained in:
Richard van der Hoff 2018-04-04 23:20:30 +01:00
parent 80786d5caf
commit ce9d0b1d0c

View file

@ -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 = (