chore(NostrClient-add_relays): If the relays is empty do nothing

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-09 15:00:09 +00:00
parent 1af731ef67
commit a9b088d8a5

View File

@@ -72,6 +72,10 @@ impl NostrClient {
/// Add relays and connect to them
pub async fn add_relays(&self, relays: &[RelayUrl]) {
if relays.is_empty() {
return;
}
let mut tasks = Vec::new();
for relay in relays {
let relay = relay.clone();