Skip to content

Commit e7ad175

Browse files
author
Ludo Galabru
committed
fix: build warnings
1 parent 97de0b0 commit e7ad175

File tree

1 file changed

+5
-2
lines changed
  • components/chainhook-sdk/src/observer

1 file changed

+5
-2
lines changed

components/chainhook-sdk/src/observer/mod.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ use crate::hord::{
1919
HordConfig,
2020
};
2121
use crate::indexer::bitcoin::{
22-
download_and_parse_block_with_retry, standardize_bitcoin_block, BitcoinBlockFullBreakdown,
22+
standardize_bitcoin_block, BitcoinBlockFullBreakdown,
2323
};
24-
use crate::indexer::fork_scratch_pad::ForkScratchPad;
2524
use crate::indexer::{Indexer, IndexerConfig};
2625
use crate::utils::{send_request, Context};
2726

@@ -440,13 +439,17 @@ pub fn get_bitcoin_proof(
440439
}
441440
}
442441

442+
#[allow(unused_variables)]
443443
pub fn start_zeromq_runloop(
444444
config: &EventObserverConfig,
445445
observer_commands_tx: Sender<ObserverCommand>,
446446
ctx: &Context,
447447
) {
448448
#[cfg(feature = "zeromq")]
449449
{
450+
use crate::indexer::fork_scratch_pad::ForkScratchPad;
451+
use crate::indexer::bitcoin::download_and_parse_block_with_retry;
452+
450453
if let BitcoinBlockSignaling::ZeroMQ(ref bitcoind_zmq_url) = config.bitcoin_block_signaling
451454
{
452455
let bitcoind_zmq_url = bitcoind_zmq_url.clone();

0 commit comments

Comments
 (0)