Skip to content

Commit

Permalink
feat: remove unused tx caches
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone committed Feb 1, 2022
1 parent 957c8fb commit f50724b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/watcher.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashMap;
use std::vec;

use futures::{stream, StreamExt};
use reqwest::Client;
Expand All @@ -14,8 +13,6 @@ use crate::tx::Tx;
#[derive(Debug)]
pub struct Watcher {
terra: Terra,
new_txs: Vec<Tx>,
cached_txs: HashMap<String, Tx>,
cache: Cache,
interval: time::Interval,
}
Expand All @@ -29,8 +26,6 @@ impl Watcher {
) -> Watcher {
Watcher {
terra: Terra::new(rpc_url, lcd_url, http_client.unwrap_or_default()),
new_txs: vec![],
cached_txs: HashMap::new(),
cache: Cache::new(30),
interval: time::interval(
interval_duration.unwrap_or_else(|| time::Duration::from_millis(100)),
Expand Down

0 comments on commit f50724b

Please sign in to comment.