diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-24 11:36:39 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-24 11:36:39 +0000 |
| commit | c31a313ccf781e54fa15942bc882c1b113d3f590 (patch) | |
| tree | 0dec673c40a7cff42651c290b8ded5f6d063a8ae /src/purgatory/sync/functions.rs | |
| parent | 5efdf431a1481f6fb7a17190b62588b81c5b1e65 (diff) | |
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.
Diffstat (limited to 'src/purgatory/sync/functions.rs')
| -rw-r--r-- | src/purgatory/sync/functions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<C: SyncContext + ?Sized>( | |||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | // 3. Get repository data | 106 | // 3. Get repository data |
| 107 | let repo_data = match ctx.fetch_repository_data(identifier).await { | 107 | let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { |
| 108 | Ok(data) => data, | 108 | Ok(data) => data, |
| 109 | Err(e) => { | 109 | Err(e) => { |
| 110 | debug!( | 110 | debug!( |
| @@ -228,7 +228,7 @@ pub async fn get_throttled_domains_with_untried_urls<C: SyncContext + ?Sized>( | |||
| 228 | throttle_manager: &ThrottleManager, | 228 | throttle_manager: &ThrottleManager, |
| 229 | git_naughty_list: &NaughtyListTracker, | 229 | git_naughty_list: &NaughtyListTracker, |
| 230 | ) -> Vec<ThrottledDomainInfo> { | 230 | ) -> Vec<ThrottledDomainInfo> { |
| 231 | let repo_data = match ctx.fetch_repository_data(identifier).await { | 231 | let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { |
| 232 | Ok(data) => data, | 232 | Ok(data) => data, |
| 233 | Err(_) => return vec![], | 233 | Err(_) => return vec![], |
| 234 | }; | 234 | }; |
| @@ -333,7 +333,7 @@ pub async fn sync_identifier_from_url<C: SyncContext + ?Sized>( | |||
| 333 | }; | 333 | }; |
| 334 | 334 | ||
| 335 | // Get repository data for target repo path | 335 | // Get repository data for target repo path |
| 336 | let repo_data = match ctx.fetch_repository_data(identifier).await { | 336 | let repo_data = match ctx.fetch_repository_data_with_purgatory(identifier).await { |
| 337 | Ok(data) => data, | 337 | Ok(data) => data, |
| 338 | Err(e) => { | 338 | Err(e) => { |
| 339 | debug!( | 339 | debug!( |