mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-04-26 00:39:09 -04:00
Respect min_depth argument
This commit is contained in:
parent
6dfd8c73fc
commit
39aa968a76
@ -507,9 +507,11 @@ 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):
|
||||||
|
if e.depth > min_depth:
|
||||||
missing_events.update({
|
missing_events.update({
|
||||||
e_id: e.depth for e_id, _ in e.prev_events
|
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 e_id not in seen_events
|
||||||
|
and e_id not in failed_to_fetch
|
||||||
})
|
})
|
||||||
|
|
||||||
if not missing_events:
|
if not missing_events:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user