summary refs log tree commit diff
path: root/synapse/handlers/_base.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-18 17:49:59 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-18 17:49:59 +0100
commit99914ec9f8d3f59c8a0571d8c9b21be7f56b5d31 (patch)
tree084839846d7968a0f416dc54627c07404e3b17a9 /synapse/handlers/_base.py
parentMerge pull request #154 from matrix-org/erikj/events_move (diff)
parentDon't bother sorting by the room_stream_ids, it shouldn't matter which order ... (diff)
downloadsynapse-99914ec9f8d3f59c8a0571d8c9b21be7f56b5d31.tar.xz
Merge pull request #152 from matrix-org/notifier_performance
Notifier performance
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r--synapse/handlers/_base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index ddc5c21e7d..833ff41377 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -105,7 +105,9 @@ class BaseHandler(object):
         if not suppress_auth:
             self.auth.check(event, auth_events=context.current_state)
 
-        yield self.store.persist_event(event, context=context)
+        (event_stream_id, max_stream_id) = yield self.store.persist_event(
+            event, context=context
+        )
 
         federation_handler = self.hs.get_handlers().federation_handler
 
@@ -142,7 +144,8 @@ class BaseHandler(object):
         with PreserveLoggingContext():
             # Don't block waiting on waking up all the listeners.
             notify_d = self.notifier.on_new_room_event(
-                event, extra_users=extra_users
+                event, event_stream_id, max_stream_id,
+                extra_users=extra_users
             )
 
         def log_failure(f):