Skip to content
Snippets Groups Projects
Commit 96fee644 authored by Erik Johnston's avatar Erik Johnston
Browse files

Remove unecessary check

parent 39aa968a
No related branches found
No related tags found
No related merge requests found
...@@ -544,19 +544,13 @@ class FederationClient(FederationBase): ...@@ -544,19 +544,13 @@ class FederationClient(FederationBase):
for e_id, depth in ordered_missing[:limit - len(signed_events)] for e_id, depth in ordered_missing[:limit - len(signed_events)]
] ]
got_a_new_event = False
res = yield defer.DeferredList(deferreds, consumeErrors=True) res = yield defer.DeferredList(deferreds, consumeErrors=True)
for (result, val), (e_id, _) in zip(res, ordered_missing): for (result, val), (e_id, _) in zip(res, ordered_missing):
if result: if result:
signed_events.append(val) signed_events.append(val)
got_a_new_event = True
else: else:
failed_to_fetch.add(e_id) failed_to_fetch.add(e_id)
if not got_a_new_event:
break
defer.returnValue(signed_events) defer.returnValue(signed_events)
def event_from_pdu_json(self, pdu_json, outlier=False): def event_from_pdu_json(self, pdu_json, outlier=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment