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

Respect min_depth argument

parent 6dfd8c73
No related branches found
No related tags found
No related merge requests found
...@@ -507,10 +507,12 @@ class FederationClient(FederationBase): ...@@ -507,10 +507,12 @@ class FederationClient(FederationBase):
missing_events = {} missing_events = {}
for e in itertools.chain(latest_events, signed_events): for e in itertools.chain(latest_events, signed_events):
missing_events.update({ if e.depth > min_depth:
e_id: e.depth for e_id, _ in e.prev_events missing_events.update({
if e_id not in seen_events and e_id not in failed_to_fetch e_id: e.depth for e_id, _ in e.prev_events
}) if e_id not in seen_events
and e_id not in failed_to_fetch
})
if not missing_events: if not missing_events:
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment