Fix typos.

This commit is contained in:
Erik Johnston 2016-08-04 14:05:45 +01:00
parent b4e2290d89
commit 257c41cc2e
1 changed files with 3 additions and 3 deletions

View File

@ -396,7 +396,7 @@ class FederationClient(FederationBase):
seen_events = yield self.store.have_events(event_ids) seen_events = yield self.store.have_events(event_ids)
signed_events = [] signed_events = []
failed_to_fetch = [] failed_to_fetch = set()
missing_events = set(event_ids) missing_events = set(event_ids)
for k in seen_events: for k in seen_events:
@ -411,8 +411,8 @@ class FederationClient(FederationBase):
return srvs return srvs
batch_size = 20 batch_size = 20
missing_events = len(missing_events) missing_events = list(missing_events)
for i in xrange(0, batch_size, batch_size): for i in xrange(0, len(missing_events), batch_size):
batch = set(missing_events[i:i + batch_size]) batch = set(missing_events[i:i + batch_size])
deferreds = [ deferreds = [