From 39a3340f738f37868b7034cb019fb410f6b1d48b Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 21 May 2015 15:48:56 +0100 Subject: [PATCH] Skip events we've already seen --- synapse/storage/event_federation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py index 91d19857b..823a4998c 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(