summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-02 13:09:56 +0000
committerErik Johnston <erik@matrix.org>2017-02-02 13:09:56 +0000
commit832e9c52ca9dd349e28967727ae87a484e6ce557 (patch)
tree26a6b65747520b6c01ceea141b2577851ce7195f /synapse/storage
parentMake presence.get_new_events a bit faster (diff)
downloadsynapse-832e9c52ca9dd349e28967727ae87a484e6ce557.tar.xz
Comment
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 70718f41ed..249217e114 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -282,6 +282,8 @@ class RoomMemberStore(SQLBaseStore):
 
     @cachedInlineCallbacks(max_entries=50000, cache_context=True, iterable=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`
+        """
         rooms = yield self.get_rooms_for_user(
             user_id, on_invalidate=cache_context.invalidate,
         )
@@ -291,7 +293,6 @@ class RoomMemberStore(SQLBaseStore):
             user_ids = yield self.get_users_in_room(
                 room.room_id, on_invalidate=cache_context.invalidate,
             )
-            logger.info("Users in room: %r %r", room.room_id, user_ids)
             user_who_share_room.update(user_ids)
 
         defer.returnValue(user_who_share_room)