diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-21 15:48:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-21 15:48:56 +0100 |
commit | 39a3340f738f37868b7034cb019fb410f6b1d48b (patch) | |
tree | ad8177c64129538ae284b655c70dd89a41ee985f /synapse/storage | |
parent | Correctly prepopulate queue (diff) | |
download | synapse-39a3340f738f37868b7034cb019fb410f6b1d48b.tar.xz |
Skip events we've already seen
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/event_federation.py | 3 |
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( |