1
0

More logging, make get_users_who_share_room_with_user non-iterable

This commit is contained in:
Andrew Morgan
2020-05-07 14:46:47 +01:00
parent 9316091c8c
commit 0a1ebe5442
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1143,6 +1143,7 @@ class SyncHandler(object):
# that were in a room we've left.
logger.info("get_users_who_share_room... called from _generate_sync_entry")
logger.info("*Called with %s", user_id)
users_who_share_room = await self.store.get_users_who_share_room_with_user(
user_id
)
@@ -486,7 +486,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
)
return frozenset(r.room_id for r in rooms)
@cachedInlineCallbacks(max_entries=500000, cache_context=True, iterable=True)
@cachedInlineCallbacks(max_entries=500000, cache_context=True)
def get_users_who_share_room_with_user(self, user_id, cache_context):
"""Returns the set of users who share a room with `user_id`
"""