From 373ecaa4646b7a901ee3e7e77ad0f540d9dc5d43 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 1 Dec 2023 05:55:41 +0800 Subject: [PATCH] Fix typos (#149) merged typos fix --- README.md | 4 ++-- relay/config.toml | 2 +- src/scheduler.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index da545dcc..a2d8374b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Mostro works with a p2p communication on top of Nostr, Mostro will be the escrow Mostro will handle Bitcoin using a Lightning Network node, the node will create the hold invoices for sellers and pay the buyers lightning regular invoices. -Mostro will need a private key to be able to create, sign and send events throught Nostr network. +Mostro will need a private key to be able to create, sign and send events through Nostr network. In the next graphic we can see a very summarized version of how Mostro, the seller and the lightning node interact, a more detailed explanation can be found [here](./FLOW.md): @@ -29,7 +29,7 @@ sequenceDiagram Mostro-->>LN-Node: Give me a hold invoice LN-Node->>Mostro: Hold invoice Mostro->>Seller: Please pay this hold invoice - Seller->>LN-Node: Paying throught lightning + Seller->>LN-Node: Paying through lightning LN-Node-->>Mostro: Payment received Mostro-->>Seller: Thanks! talk to buyer now ``` diff --git a/relay/config.toml b/relay/config.toml index 2b17415a..2709b868 100644 --- a/relay/config.toml +++ b/relay/config.toml @@ -30,7 +30,7 @@ description = "A newly created nostr-rs-relay.\n\nCustomize this with your own i #engine = "sqlite" # Directory for SQLite files. Defaults to the current directory. Can -# also be specified (and overriden) with the "--db dirname" command +# also be specified (and overridden) with the "--db dirname" command # line option. #data_directory = "." diff --git a/src/scheduler.rs b/src/scheduler.rs index 84dae964..fddee1b8 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -77,7 +77,7 @@ async fn job_cancel_orders(client: Client) { // Check if order is a sell order and Buyer is not sending the invoice for too much time. // Same if seller is not paying hold invoice if order.status == "WaitingBuyerInvoice" || order.status == "WaitingPayment" { - // If hold invoice is payed return funds to seller + // If hold invoice is paid return funds to seller if order.hash.is_some() { // We return funds to seller let hash = order.hash.as_ref().unwrap();