Rewrite new() in terms of new_with_timeout()
This commit is contained in:
		@@ -15,10 +15,7 @@ pub struct RpcClientRequest {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
impl RpcClientRequest {
 | 
					impl RpcClientRequest {
 | 
				
			||||||
    pub fn new(url: String) -> Self {
 | 
					    pub fn new(url: String) -> Self {
 | 
				
			||||||
        Self {
 | 
					        Self::new_with_timeout(url, Duration::from_secs(20))
 | 
				
			||||||
            client: reqwest::blocking::Client::new(),
 | 
					 | 
				
			||||||
            url,
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn new_with_timeout(url: String, timeout: Duration) -> Self {
 | 
					    pub fn new_with_timeout(url: String, timeout: Duration) -> Self {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user