Warn when few relays respond

This commit is contained in:
thePR0M3TH3AN
2025-07-14 12:28:44 -04:00
parent 549b3903b1
commit 741845799a

View File

@@ -1092,8 +1092,8 @@ class PasswordManager:
healthy = self.nostr_client.check_relay_health(MIN_HEALTHY_RELAYS) healthy = self.nostr_client.check_relay_health(MIN_HEALTHY_RELAYS)
if healthy < MIN_HEALTHY_RELAYS: if healthy < MIN_HEALTHY_RELAYS:
self.notify( self.notify(
f"Only {healthy} relay(s) responded with your latest event." f"Only {healthy} relay(s) responded with your latest event. "
" Consider adding more relays via Settings.", "Consider adding more relays via Settings.",
level="WARNING", level="WARNING",
) )
except Exception as exc: except Exception as exc: