upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sync/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/mod.rs')
-rw-r--r--src/sync/mod.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sync/mod.rs b/src/sync/mod.rs
index 6437ee1..70f9dd7 100644
--- a/src/sync/mod.rs
+++ b/src/sync/mod.rs
@@ -973,6 +973,25 @@ impl SyncManager {
973 sync_method = ?sync_method, 973 sync_method = ?sync_method,
974 "Generic filter (announcements) historic sync complete - announcements_synced set to true" 974 "Generic filter (announcements) historic sync complete - announcements_synced set to true"
975 ); 975 );
976
977 // Provide helpful feedback for bootstrap relay
978 if state.is_bootstrap {
979 let announcement_count = events_count;
980 if announcement_count == 0 {
981 tracing::info!(
982 relay = %relay_url,
983 domain = %self.config.domain,
984 "Bootstrap sync found no announcements for domain - verify domain is correct or try different bootstrap relay"
985 );
986 } else {
987 tracing::info!(
988 relay = %relay_url,
989 domain = %self.config.domain,
990 announcement_count,
991 "Bootstrap sync discovered announcements for domain"
992 );
993 }
994 }
976 } 995 }
977 996
978 // Track if this batch failed (for ConnectedDegraded transition) 997 // Track if this batch failed (for ConnectedDegraded transition)