Allowing to use socks5 which requires None timeout
# Optional dependencies
sled = { version = "0.34", optional = true }
-electrum-client = { version = "0.4.0-beta.1", optional = true }
+electrum-client = { version = "0.5.0-beta.1", optional = true }
reqwest = { version = "0.10", optional = true, features = ["json"] }
futures = { version = "0.3", optional = true }
async-trait = { version = "0.1", optional = true }
/// Request retry count
pub retry: u8,
/// Request timeout (seconds)
- pub timeout: u8,
+ pub timeout: Option<u8>,
}
impl ConfigurableBlockchain for ElectrumBlockchain {
let socks5 = config.socks5.as_ref().map(Socks5Config::new);
let electrum_config = ConfigBuilder::new()
.retry(config.retry)
- .socks5(socks5)?
.timeout(config.timeout)?
+ .socks5(socks5)?
.build();
Ok(ElectrumBlockchain(Client::from_config(