Skip to content

Commit

Permalink
feat: introduce "data_handler_tx"
Browse files Browse the repository at this point in the history
  • Loading branch information
vabanaerytk authored and Ludo Galabru committed Aug 26, 2023
1 parent 7d2b156 commit a7704d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/chainhook-sdk/src/observer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub struct EventObserverConfig {
pub cache_path: String,
pub bitcoin_network: BitcoinNetwork,
pub stacks_network: StacksNetwork,
pub data_handler_tx: Option<crossbeam_channel::Sender<BitcoinChainhookOccurrencePayload>>,
}

#[derive(Deserialize, Debug, Clone)]
Expand Down Expand Up @@ -187,6 +188,7 @@ impl EventObserverConfig {
.unwrap_or("cache".to_string()),
bitcoin_network,
stacks_network,
data_handler_tx: None,
};
Ok(config)
}
Expand Down

0 comments on commit a7704d8

Please sign in to comment.