nip05 relays not found should not be an error.

This commit is contained in:
Mike Dilger 2023-02-02 08:58:54 +13:00
parent 3b2a650719
commit 7b0a468f59
2 changed files with 1 additions and 4 deletions

View File

@ -27,9 +27,6 @@ pub enum Error {
#[error("NIP-05 public key not found")]
Nip05KeyNotFound,
#[error("NIP-05 relays not found")]
Nip05RelaysNotFound,
#[error("Nostr: {0}")]
Nostr(#[from] nostr_types::Error),

View File

@ -117,7 +117,7 @@ async fn update_relays(
// Set their relays
let relays = match nip05file.relays.get(pubkey) {
Some(relays) => relays,
None => return Err(Error::Nip05RelaysNotFound),
None => return Ok(()),
};
for relay in relays.iter() {
// Save relay