Skip to content

Commit

Permalink
Make stop_gap a parameter to EsploraBlockchainConfig::new
Browse files Browse the repository at this point in the history
  • Loading branch information
LLFourn committed Nov 9, 2021
1 parent 0f0a01a commit 9c57708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockchain/esplora/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ pub struct EsploraBlockchainConfig {

impl EsploraBlockchainConfig {
/// create a config with default values given the base url and stop gap
pub fn new(base_url: String) -> Self {
pub fn new(base_url: String, stop_gap: usize) -> Self {
Self {
base_url,
proxy: None,
timeout: None,
stop_gap: 20,
stop_gap,
concurrency: None,
}
}
Expand Down

0 comments on commit 9c57708

Please sign in to comment.