summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-27 13:30:39 +0100
committerErik Johnston <erik@matrix.org>2018-03-27 13:30:39 +0100
commit800cfd5774d9726a00c53f2d84ce0286ab64c17b (patch)
tree00035986b92e0b824f868e173bb5f7a7cfe47277
parentFix indent (diff)
downloadsynapse-800cfd5774d9726a00c53f2d84ce0286ab64c17b.tar.xz
Comment
-rw-r--r--synapse/storage/events.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 95b36d669b..f3d65f4338 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -415,10 +415,11 @@ class EventsStore(EventsWorkerStore):
                                 # processing one of these events.
                                 # What we're interested in is if the latest extremities
                                 # were the same when we created the event as they are
-                                # now. We guess this by looking at the prev events and
-                                # checking if they match up, as when this server creates
-                                # a new event it will use the extremities as the prev
-                                # events.
+                                # now. When this server creates a new event (as opposed
+                                # to receiving it over federation) it will use the
+                                # forward extremities as the prev_events, so we can
+                                # guess this by looking at the prev_events and checking
+                                # if they match the current forward extremities.
                                 for ev, _ in ev_ctx_rm:
                                     prev_event_ids = set(e for e, _ in ev.prev_events)
                                     if latest_event_ids == prev_event_ids: