summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-06 13:52:16 +0000
committerErik Johnston <erik@matrix.org>2015-02-06 13:52:16 +0000
commitc78b5fb1f16957f5398517fa5a99dcb370992b26 (patch)
tree5ffa192cb0a2638fba9aa608d4b79188880f8615
parentReturn body of response in HttpResponseException (diff)
downloadsynapse-c78b5fb1f16957f5398517fa5a99dcb370992b26.tar.xz
Make seen_ids a set
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 9d0ce9aa50..1b709e5e24 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -130,7 +130,9 @@ class FederationHandler(BaseHandler):
         if auth_chain:
             event_ids |= {e.event_id for e in auth_chain}
 
-        seen_ids = (yield self.store.have_events(event_ids)).keys()
+        seen_ids = set(
+            (yield self.store.have_events(event_ids)).keys()
+        )
 
         if state and auth_chain is not None:
             # If we have any state or auth_chain given to us by the replication