Skip to content

Commit

Permalink
chore: remove unused struct & import (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jun 29, 2023
1 parent 09986f4 commit a2d3b14
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions components/chainhook-sdk/src/observer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,6 @@ pub struct BitcoinConfig {
pub bitcoin_block_signaling: BitcoinBlockSignaling,
}

#[derive(Debug, Clone)]
pub struct ServicesConfig {
pub stacks_node_url: String,
pub bitcoin_node_url: String,
}

#[derive(Debug, Clone)]
pub struct ChainhookStore {
pub predicates: ChainhookConfig,
Expand Down Expand Up @@ -398,11 +392,6 @@ pub async fn start_event_observer(
let bitcoin_rpc_proxy_enabled = config.bitcoin_rpc_proxy_enabled;
let bitcoin_config = config.get_bitcoin_config();

let services_config = ServicesConfig {
stacks_node_url: config.bitcoind_rpc_url.clone(),
bitcoin_node_url: config.stacks_node_rpc_url.clone(),
};

let mut chainhook_store = ChainhookStore::new();
// If authorization not required, we create a default ChainhookConfig
if let Some(ref mut initial_chainhook_config) = config.chainhook_config {
Expand Down Expand Up @@ -462,7 +451,6 @@ pub async fn start_event_observer(
.manage(background_job_tx_mutex)
.manage(bitcoin_config)
.manage(ctx_cloned)
.manage(services_config)
.mount("/", routes)
.ignite()
.await?;
Expand Down Expand Up @@ -516,7 +504,6 @@ pub fn start_zeromq_runloop(
) {
#[cfg(feature = "zeromq")]
{
use crate::indexer::bitcoin::download_and_parse_block_with_retry;
use crate::indexer::fork_scratch_pad::ForkScratchPad;

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

0 comments on commit a2d3b14

Please sign in to comment.