refactor: short circuit claimable sites loop when we have enough sites

This commit is contained in:
Adam Miller 2025-04-15 14:03:15 -07:00
parent f0d527cda7
commit 0f57188a2c

View File

@ -65,6 +65,9 @@ def filter_claimable_site_ids(
if is_claimable:
claimable_sites.append(site)
if len(claimable_sites) >= max_sites_to_claim:
break
site_ids_to_claim = []
# gather sites that are under the max without going over
for site in claimable_sites: