From a8b574ae5117939717963304713dd2f1e2929c7d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 19 Jul 2024 12:08:46 +0100 Subject: fix(fetch): absent repo addr infinite loop prevent an infinite loop when a new maintainer is identified that hasn't issued a repo event yet make it clear when repo_coordinates must not have relays --- src/repo_ref.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/repo_ref.rs') diff --git a/src/repo_ref.rs b/src/repo_ref.rs index df348a5..9bc3201 100644 --- a/src/repo_ref.rs +++ b/src/repo_ref.rs @@ -178,6 +178,7 @@ impl RepoRef { .await .context("failed to create repository reference event") } + /// coordinates without relay hints pub fn coordinates(&self) -> HashSet { let mut res = HashSet::new(); for m in &self.maintainers { @@ -190,6 +191,7 @@ impl RepoRef { } res } + /// coordinates without relay hints pub fn coordinates_with_timestamps(&self) -> Vec<(Coordinate, Option)> { self.coordinates() .iter() -- cgit v1.2.3