Skip to content

Commit

Permalink
fix: compile error of ci
Browse files Browse the repository at this point in the history
  • Loading branch information
will-bitlight committed Sep 4, 2024
1 parent ecd2c41 commit bcfc6c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ hot = ["bp-std/signers", "bip39", "rand", "aes-gcm", "rpassword"]
cli = ["base64", "env_logger", "clap", "shellexpand", "fs", "serde", "electrum", "esplora", "mempool", "log", "colored"]
log = ["env_logger"]
electrum = ["bp-electrum", "serde", "serde_json"]
esplora = ["bp-esplora"]
mempool = ["esplora"]
esplora = ["bp-esplora", "serde", "serde_json"]
mempool = ["esplora", "serde", "serde_json"]
fs = ["serde"]
serde = ["serde_crate", "serde_yaml", "toml", "bp-std/serde"]
5 changes: 4 additions & 1 deletion src/indexers/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "electrum")]
use std::collections::HashMap;
use std::num::NonZeroUsize;
use std::sync::{Arc, Mutex};

use bpstd::{BlockHash, DerivedAddr, Tx, Txid};
#[cfg(feature = "electrum")]
use bpstd::Txid;
use bpstd::{BlockHash, DerivedAddr, Tx};
#[cfg(feature = "electrum")]
use electrum::GetHistoryRes;
use lru::LruCache;
Expand Down

0 comments on commit bcfc6c7

Please sign in to comment.