From 9c5770831de58760066dbbb26c0785632dde4991 Mon Sep 17 00:00:00 2001 From: LLFourn Date: Fri, 5 Nov 2021 13:34:30 +1100 Subject: [PATCH] Make stop_gap a parameter to EsploraBlockchainConfig::new --- src/blockchain/esplora/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain/esplora/mod.rs b/src/blockchain/esplora/mod.rs index 362cebe1..83c5c3dd 100644 --- a/src/blockchain/esplora/mod.rs +++ b/src/blockchain/esplora/mod.rs @@ -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, } }