chore(NostrClient-add_relays): If the relays is empty do nothing
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user