From c31a313ccf781e54fa15942bc882c1b113d3f590 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 24 Feb 2026 11:36:39 +0000 Subject: rename: fetch_repository_data -> fetch_repository_data_{excluding,with}_purgatory The old name was ambiguous - it wasn't clear whether purgatory was included or not. The two variants are now explicitly named: - fetch_repository_data_excluding_purgatory: DB only - fetch_repository_data_with_purgatory: DB + purgatory overlay SyncContext trait method also renamed to fetch_repository_data_with_purgatory to match the free function it delegates to. --- src/purgatory/sync/functions.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/purgatory/sync/functions.rs') diff --git a/src/purgatory/sync/functions.rs b/src/purgatory/sync/functions.rs index 9207d58..bd5c0c0 100644 --- a/src/purgatory/sync/functions.rs +++ b/src/purgatory/sync/functions.rs @@ -104,7 +104,7 @@ pub async fn sync_identifier_next_url( } // 3. Get repository data - let repo_data = match ctx.fetch_repository_data(identifier).await { + let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { Ok(data) => data, Err(e) => { debug!( @@ -228,7 +228,7 @@ pub async fn get_throttled_domains_with_untried_urls( throttle_manager: &ThrottleManager, git_naughty_list: &NaughtyListTracker, ) -> Vec { - let repo_data = match ctx.fetch_repository_data(identifier).await { + let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { Ok(data) => data, Err(_) => return vec![], }; @@ -333,7 +333,7 @@ pub async fn sync_identifier_from_url( }; // Get repository data for target repo path - let repo_data = match ctx.fetch_repository_data(identifier).await { + let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { Ok(data) => data, Err(e) => { debug!( -- cgit v1.2.3