Skip to content

Commit

Permalink
fix: build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludo Galabru committed Jun 9, 2023
1 parent 97de0b0 commit e7ad175
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/chainhook-sdk/src/observer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ use crate::hord::{
HordConfig,
};
use crate::indexer::bitcoin::{
download_and_parse_block_with_retry, standardize_bitcoin_block, BitcoinBlockFullBreakdown,
standardize_bitcoin_block, BitcoinBlockFullBreakdown,
};
use crate::indexer::fork_scratch_pad::ForkScratchPad;
use crate::indexer::{Indexer, IndexerConfig};
use crate::utils::{send_request, Context};

Expand Down Expand Up @@ -440,13 +439,17 @@ pub fn get_bitcoin_proof(
}
}

#[allow(unused_variables)]
pub fn start_zeromq_runloop(
config: &EventObserverConfig,
observer_commands_tx: Sender<ObserverCommand>,
ctx: &Context,
) {
#[cfg(feature = "zeromq")]
{
use crate::indexer::fork_scratch_pad::ForkScratchPad;
use crate::indexer::bitcoin::download_and_parse_block_with_retry;

if let BitcoinBlockSignaling::ZeroMQ(ref bitcoind_zmq_url) = config.bitcoin_block_signaling
{
let bitcoind_zmq_url = bitcoind_zmq_url.clone();
Expand Down

0 comments on commit e7ad175

Please sign in to comment.