diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-06 13:52:16 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-06 13:52:16 +0000 |
commit | c78b5fb1f16957f5398517fa5a99dcb370992b26 (patch) | |
tree | 5ffa192cb0a2638fba9aa608d4b79188880f8615 | |
parent | Return body of response in HttpResponseException (diff) | |
download | synapse-c78b5fb1f16957f5398517fa5a99dcb370992b26.tar.xz |
Make seen_ids a set
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
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 |