upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/purgatory/sync/functions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/purgatory/sync/functions.rs')
-rw-r--r--src/purgatory/sync/functions.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/purgatory/sync/functions.rs b/src/purgatory/sync/functions.rs
index 65d29af..2b7e71f 100644
--- a/src/purgatory/sync/functions.rs
+++ b/src/purgatory/sync/functions.rs
@@ -369,7 +369,7 @@ pub async fn sync_identifier_from_url<C: SyncContext + ?Sized>(
369 throttle_manager.complete_request(&domain); 369 throttle_manager.complete_request(&domain);
370 370
371 let oids_fetched = match fetch_result { 371 let oids_fetched = match fetch_result {
372 Ok(fetched) => { 372 Ok(fetched) if !fetched.is_empty() => {
373 debug!( 373 debug!(
374 identifier = %identifier, 374 identifier = %identifier,
375 url = %url, 375 url = %url,
@@ -378,6 +378,14 @@ pub async fn sync_identifier_from_url<C: SyncContext + ?Sized>(
378 ); 378 );
379 fetched.len() 379 fetched.len()
380 } 380 }
381 Ok(_) => {
382 debug!(
383 identifier = %identifier,
384 url = %url,
385 "Fetch returned no OIDs (not available on remote)"
386 );
387 0
388 }
381 Err(e) => { 389 Err(e) => {
382 debug!( 390 debug!(
383 identifier = %identifier, 391 identifier = %identifier,