mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-30 00:41:42 +00:00
nip05 relays not found should not be an error.
This commit is contained in:
parent
3b2a650719
commit
7b0a468f59
@ -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),
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user