summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-21 15:48:56 +0100
committerErik Johnston <erik@matrix.org>2015-05-21 15:48:56 +0100
commit39a3340f738f37868b7034cb019fb410f6b1d48b (patch)
treead8177c64129538ae284b655c70dd89a41ee985f /synapse/storage/event_federation.py
parentCorrectly prepopulate queue (diff)
downloadsynapse-39a3340f738f37868b7034cb019fb410f6b1d48b.tar.xz
Skip events we've already seen
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 91d19857b1..823a4998c3 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -411,6 +411,9 @@ class EventFederationStore(SQLBaseStore):
             except Empty:
                 break
 
+            if event_id in event_results:
+                continue
+
             event_results.add(event_id)
 
             txn.execute(