1
0

Only set attribute if going forward

This commit is contained in:
Eric Eastwood
2022-08-08 20:37:05 -05:00
parent ee465f993b
commit aa5e92506b
+2 -1
View File
@@ -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.