diff options
author | Eric Eastwood <erice@element.io> | 2022-08-08 20:37:05 -0500 |
---|---|---|
committer | Eric Eastwood <erice@element.io> | 2022-08-08 20:37:05 -0500 |
commit | aa5e92506bd374cf9d07a45d6b9e2b8e03d8b65d (patch) | |
tree | cc10cf625e621fd179f70acb37773ac9846f157f | |
parent | Fix some lints (mistakes) and better trace when fetching events (diff) | |
download | synapse-aa5e92506bd374cf9d07a45d6b9e2b8e03d8b65d.tar.xz |
Only set attribute if going forward
-rw-r--r-- | synapse/handlers/federation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index d77a0adc3d..a27f9f6246 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -320,10 +320,11 @@ class FederationHandler: extremities_to_request: List[str] = [] for i, bp in enumerate(sorted_backfill_points): - set_attribute("backfill_point" + str(i), str(bp)) if len(extremities_to_request) >= 5: break + set_attribute("backfill_point" + str(i), str(bp)) + # For regular backwards extremities, we don't have the extremity events # themselves, so we need to actually check the events that reference them - # their "successor" events. |