mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
feat: add helpful feedback after bootstrap relay sync completes
When bootstrap sync completes with zero announcements, users may not know if this is expected or indicates a configuration problem (wrong domain or wrong bootstrap relay). Changes: - Add INFO-level message after bootstrap announcement sync completes - If zero announcements: suggest verifying domain/relay configuration - If announcements found: report count for user awareness - Only applies to bootstrap relay (is_bootstrap flag) This helps users quickly diagnose configuration issues during initial setup and testing. Discovered via production sync testing against wss://git.shakespeare.diy
This commit is contained in:
@@ -973,6 +973,25 @@ impl SyncManager {
|
||||
sync_method = ?sync_method,
|
||||
"Generic filter (announcements) historic sync complete - announcements_synced set to true"
|
||||
);
|
||||
|
||||
// Provide helpful feedback for bootstrap relay
|
||||
if state.is_bootstrap {
|
||||
let announcement_count = events_count;
|
||||
if announcement_count == 0 {
|
||||
tracing::info!(
|
||||
relay = %relay_url,
|
||||
domain = %self.config.domain,
|
||||
"Bootstrap sync found no announcements for domain - verify domain is correct or try different bootstrap relay"
|
||||
);
|
||||
} else {
|
||||
tracing::info!(
|
||||
relay = %relay_url,
|
||||
domain = %self.config.domain,
|
||||
announcement_count,
|
||||
"Bootstrap sync discovered announcements for domain"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Track if this batch failed (for ConnectedDegraded transition)
|
||||
|
||||
Reference in New Issue
Block a user