upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/purgatory/sync/context.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:50:54 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:50:54 +0000
commitf75e1c59aacf5ce668fd327e4e3d827511661c2a (patch)
tree867926c7503e7c587e86c67896a9e7347600447b /src/purgatory/sync/context.rs
parent3f14f998d64b5fa15bdddd7570b4f72874eb9f29 (diff)
chore: cargo fmt
Diffstat (limited to 'src/purgatory/sync/context.rs')
-rw-r--r--src/purgatory/sync/context.rs19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/purgatory/sync/context.rs b/src/purgatory/sync/context.rs
index 2922f10..9e195c7 100644
--- a/src/purgatory/sync/context.rs
+++ b/src/purgatory/sync/context.rs
@@ -119,12 +119,8 @@ pub trait SyncContext: Send + Sync {
119 /// 119 ///
120 /// # Returns 120 /// # Returns
121 /// List of OIDs that were successfully fetched 121 /// List of OIDs that were successfully fetched
122 async fn fetch_oids( 122 async fn fetch_oids(&self, repo_path: &Path, url: &str, oids: &[String])
123 &self, 123 -> Result<Vec<String>>;
124 repo_path: &Path,
125 url: &str,
126 oids: &[String],
127 ) -> Result<Vec<String>>;
128 124
129 /// Process newly available git data. 125 /// Process newly available git data.
130 /// 126 ///
@@ -368,10 +364,7 @@ impl SyncContext for RealSyncContext {
368 .cloned() 364 .cloned()
369 .collect(); 365 .collect();
370 366
371 debug!( 367 debug!(fetched_count = fetched.len(), "Successfully fetched OIDs");
372 fetched_count = fetched.len(),
373 "Successfully fetched OIDs"
374 );
375 368
376 fetched 369 fetched
377 } 370 }
@@ -702,11 +695,7 @@ pub mod mock {
702 } 695 }
703 696
704 // Get OIDs this URL can provide 697 // Get OIDs this URL can provide
705 let provides = self 698 let provides = self.url_provides_oids.get(url).cloned().unwrap_or_default();
706 .url_provides_oids
707 .get(url)
708 .cloned()
709 .unwrap_or_default();
710 699
711 // Find which requested OIDs this URL can provide 700 // Find which requested OIDs this URL can provide
712 let fetched: Vec<String> = oids 701 let fetched: Vec<String> = oids