mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Remove unecessary check
This commit is contained in:
parent
39aa968a76
commit
96fee64421
@ -544,19 +544,13 @@ class FederationClient(FederationBase):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user