From 8e3a7da596c080638e960a731214e06f23b1d87b Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 31 Jan 2020 09:53:17 -0700 Subject: [PATCH] Rewrite new() in terms of new_with_timeout() --- client/src/rpc_client_request.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/rpc_client_request.rs b/client/src/rpc_client_request.rs index 3760c9e5f6..c076a2c544 100644 --- a/client/src/rpc_client_request.rs +++ b/client/src/rpc_client_request.rs @@ -15,10 +15,7 @@ pub struct RpcClientRequest { impl RpcClientRequest { pub fn new(url: String) -> Self { - Self { - client: reqwest::blocking::Client::new(), - url, - } + Self::new_with_timeout(url, Duration::from_secs(20)) } pub fn new_with_timeout(url: String, timeout: Duration) -> Self {