From 95f5fde6a403a3cd75f3f9651b0b8fddb80f0c0e Mon Sep 17 00:00:00 2001 From: Sachin Meier Date: Sat, 11 Nov 2023 19:07:45 -0500 Subject: [PATCH 1/2] lint --- src/mempool/mod.rs | 1 - src/wallet.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/mempool/mod.rs b/src/mempool/mod.rs index d6fb164..33b7bdc 100644 --- a/src/mempool/mod.rs +++ b/src/mempool/mod.rs @@ -5,7 +5,6 @@ use core::time; // use tokio::task; -use bdk::bitcoincore_rpc::jsonrpc::client; use bdk::FeeRate; use reqwest::Client; use serde::Deserialize; diff --git a/src/wallet.rs b/src/wallet.rs index 05c38a2..1943447 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -38,7 +38,6 @@ pub struct LooperWallet { xprv: ExtendedPrivKey, index: Mutex, wallet: Wallet, - mempool_client: Arc>, } impl LooperWallet { @@ -85,7 +84,6 @@ impl LooperWallet { xprv, index: Mutex::new(0), wallet, - mempool_client: Arc::new(tokio::sync::Mutex::new(reqwest::Client::new())), }; looper_wallet.sync()?; From 1705428201ea676ad4c9a9319057279bda8184d5 Mon Sep 17 00:00:00 2001 From: Sachin Meier Date: Sat, 11 Nov 2023 19:24:34 -0500 Subject: [PATCH 2/2] add pre-commit --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d39f02a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/doublify/pre-commit-rust + rev: v1.0 + hooks: + - id: fmt + - id: cargo-check + - id: clippy \ No newline at end of file