Skip to content

Commit

Permalink
Merge #121: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jun 30, 2023
2 parents 63fff7e + a2f080b commit 17130c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Empty file.
2 changes: 1 addition & 1 deletion crates/nostr-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub enum Error {
#[cfg(feature = "nip46")]
#[error(transparent)]
JSON(#[from] nostr::serde_json::Error),
/// Generig NIP46 error
/// Generic NIP46 error
#[cfg(feature = "nip46")]
#[error("generic error")]
Generic,
Expand Down
6 changes: 3 additions & 3 deletions crates/nostr-sdk/src/relay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum Error {
Timeout,
/// Message not sent
#[error("message not sent")]
MessagetNotSent,
MessageNotSent,
/// Impossible to receive oneshot message
#[error("impossible to recv msg")]
OneShotRecvError,
Expand Down Expand Up @@ -662,7 +662,7 @@ impl Relay {
self.relay_sender
.send((relay_msg, sender))
.await
.map_err(|_| Error::MessagetNotSent)
.map_err(|_| Error::MessageNotSent)
})
.await
.ok_or(Error::ChannelTimeout)??;
Expand Down Expand Up @@ -733,7 +733,7 @@ impl Relay {
if val {
Ok(())
} else {
Err(Error::MessagetNotSent)
Err(Error::MessageNotSent)
}
}
Err(_) => Err(Error::OneShotRecvError),
Expand Down
2 changes: 1 addition & 1 deletion crates/nostr/src/nips/nip47.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub enum ErrorCode {
NotImplemented,
/// The wallet does not have enough funds to cover a fee reserve or the payment amount
#[serde(rename = "INSUFFICIENT_BALANCE")]
InsufficantBalance,
InsufficientBalance,
/// The wallet has exceeded its spending quota
#[serde(rename = "QUOTA_EXCEEDED")]
QuotaExceeded,
Expand Down

0 comments on commit 17130c8

Please sign in to comment.