Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone authored Feb 1, 2022
1 parent 6270c39 commit 957c8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use twelvepool::Watcher;

#[tokio::main]
async fn main() {
let mut receiver = Watcher::new(
let mut watcher = Watcher::new(
String::from("http://localhost:26657"), // RPC address
String::from("http://localhost:1317"), // LCD address
None, // Optional reqwest client
Expand All @@ -18,7 +18,7 @@ async fn main() {
.run();

loop {
if let Some(mempool_item) = receiver.recv().await {
if let Some(mempool_item) = watcher.recv().await {
if mempool_item.tx.memo == "my memo" {
println!("tx with our memo found (tx hash {})", mempool_item.tx_hash);
}
Expand Down

0 comments on commit 957c8fb

Please sign in to comment.