diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-04 14:05:45 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-04 14:05:45 +0100 |
commit | 257c41cc2e7163c42b8bcfa3a29d42ae5ac087b9 (patch) | |
tree | 966b68430857e3fe505f4dcc285bb07c850963c3 /synapse/federation | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/state_ids_api (diff) | |
download | synapse-257c41cc2e7163c42b8bcfa3a29d42ae5ac087b9.tar.xz |
Fix typos.
Diffstat (limited to '')
-rw-r--r-- | synapse/federation/federation_client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index ae0d650700..c6ed720166 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -396,7 +396,7 @@ class FederationClient(FederationBase): seen_events = yield self.store.have_events(event_ids) signed_events = [] - failed_to_fetch = [] + failed_to_fetch = set() missing_events = set(event_ids) for k in seen_events: @@ -411,8 +411,8 @@ class FederationClient(FederationBase): return srvs batch_size = 20 - missing_events = len(missing_events) - for i in xrange(0, batch_size, batch_size): + missing_events = list(missing_events) + for i in xrange(0, len(missing_events), batch_size): batch = set(missing_events[i:i + batch_size]) deferreds = [ |