From e4441f7f5176d039cd59214ab987c6c7ad779ff2 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 18 Jul 2024 14:13:51 +0100 Subject: fix(fetch): new coodinates infinite loop prevent infinite loop when new coordinates are found --- src/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client.rs') diff --git a/src/client.rs b/src/client.rs index 4e5a9d4..c075793 100644 --- a/src/client.rs +++ b/src/client.rs @@ -749,13 +749,14 @@ pub async fn get_repo_ref_from_cache( repo_coordinates: &HashSet, ) -> Result { let mut maintainers = HashSet::new(); - let mut new_coordinate = false; + let mut new_coordinate: bool; for c in repo_coordinates { maintainers.insert(c.public_key); } let mut repo_events = vec![]; loop { + new_coordinate = false; let filter = get_filter_repo_events(repo_coordinates); let events = [ -- cgit v1.2.3