Make stop_gap a parameter to EsploraBlockchainConfig::new
This commit is contained in:
		
							parent
							
								
									0f0a01a742
								
							
						
					
					
						commit
						9c5770831d
					
				@ -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,
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user