Minor new cleanup

This commit is contained in:
Michael Vines
2019-01-14 15:48:16 -08:00
committed by Grimes
parent 447243f994
commit e3a96ed3fc

View File

@ -30,11 +30,7 @@ impl RpcClient {
} }
pub fn new_from_socket(addr: SocketAddr) -> Self { pub fn new_from_socket(addr: SocketAddr) -> Self {
let addr = get_rpc_request_str(addr); Self::new(get_rpc_request_str(addr))
RpcClient {
client: reqwest::Client::new(),
addr,
}
} }
pub fn retry_make_rpc_request( pub fn retry_make_rpc_request(