summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 11:55:13 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 11:55:13 +0100
commit42137efde7aeb350e203fe19b5a661c2b27f208f (patch)
tree1e2ae263b81c73fba63889e463465668d47a36c5 /synapse
parentAdd user_directory to database (diff)
downloadsynapse-42137efde7aeb350e203fe19b5a661c2b27f208f.tar.xz
Don't go round in circles
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/user_directory.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 43e917c1a0..4b1b7df745 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -66,8 +66,8 @@ class UserDirectoyHandler(object):
 
                 yield self._handle_deltas(deltas)
 
-                max_stream_id = deltas[-1]["stream_id"]
-                yield self.store.update_user_directory_stream_pos(max_stream_id)
+                self.pos = deltas[-1]["stream_id"]
+                yield self.store.update_user_directory_stream_pos(self.pos)
 
     @defer.inlineCallbacks
     def _handle_room(self, room_id):
@@ -208,8 +208,6 @@ class UserDirectoyHandler(object):
         if event:
             hist_vis = event.content.get(key_name, None)
 
-        logger.info("prev: %r, new: %r", prev_hist_vis, hist_vis)
-
         if hist_vis == public_value and prev_hist_vis != public_value:
             defer.returnValue(True)
         elif hist_vis != public_value and prev_hist_vis == public_value: