summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-03 09:56:05 +0100
committerErik Johnston <erik@matrix.org>2017-05-15 15:11:30 +0100
commit871605f4e20cce3f093b2eae0f3d2ad7fb43a640 (patch)
tree8dff3de14ab9e22ba1fe52725cac7bfafac10a73 /synapse/storage/events.py
parentAdd more granular event send metrics (diff)
downloadsynapse-871605f4e20cce3f093b2eae0f3d2ad7fb43a640.tar.xz
Comments
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 36574f78b8..5db7ec1622 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -453,10 +453,10 @@ class EventsStore(SQLBaseStore):
         Assumes that we are only persisting events for one room at a time.
 
         Returns:
-            2-tuple (to_delete, to_insert) where both are state dicts, i.e.
-            (type, state_key) -> event_id. `to_delete` are the entries to
+            3-tuple (to_delete, to_insert, new_state) where both are state dicts,
+            i.e. (type, state_key) -> event_id. `to_delete` are the entries to
             first be deleted from current_state_events, `to_insert` are entries
-            to insert.
+            to insert. `new_state` is the full set of state.
             May return None if there are no changes to be applied.
         """
         # Now we need to work out the different state sets for