Skip to content

Commit

Permalink
Remove unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Mar 5, 2015
1 parent 39aa968 commit 96fee64
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,19 +544,13 @@ def random_server_list():
for e_id, depth in ordered_missing[:limit - len(signed_events)]
]

got_a_new_event = False

res = yield defer.DeferredList(deferreds, consumeErrors=True)
for (result, val), (e_id, _) in zip(res, ordered_missing):
if result:
signed_events.append(val)
got_a_new_event = True
else:
failed_to_fetch.add(e_id)

if not got_a_new_event:
break

defer.returnValue(signed_events)

def event_from_pdu_json(self, pdu_json, outlier=False):
Expand Down

0 comments on commit 96fee64

Please sign in to comment.