Make stop_gap a parameter to EsploraBlockchainConfig::new

This commit is contained in:
LLFourn committed 2021-11-10 09:07:36 +11:00
1 parent 0f0a01a742
commit 9c5770831d
1 file changed
+2 -2
+2 -2
View File
@@ -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,
}
}