@@ -23,7 +23,7 @@ use super::auth;
2323const USER_AGENT : & str = concat ! ( "tendermint.rs/" , env!( "CARGO_PKG_VERSION" ) ) ;
2424
2525/// `reqwest` http client re-exported for compatibility convenience
26- pub type ReqwestClient = reqwest:: Client ;
26+ pub type InnerClient = reqwest:: Client ;
2727
2828/// A JSON-RPC/HTTP Tendermint RPC client (implements [`crate::Client`]).
2929///
@@ -53,7 +53,7 @@ pub type ReqwestClient = reqwest::Client;
5353/// ```
5454#[ derive( Debug , Clone ) ]
5555pub struct HttpClient {
56- inner : ReqwestClient ,
56+ inner : InnerClient ,
5757 url : reqwest:: Url ,
5858 compat : CompatMode ,
5959}
@@ -65,7 +65,7 @@ pub struct Builder {
6565 proxy_url : Option < HttpClientUrl > ,
6666 user_agent : Option < String > ,
6767 timeout : Duration ,
68- client : Option < ReqwestClient > ,
68+ client : Option < InnerClient > ,
6969}
7070
7171impl Builder {
@@ -108,7 +108,7 @@ impl Builder {
108108 /// ## Warning
109109 /// This will override the following options set on the builder:
110110 /// `timeout`, `user_agent`, and `proxy_url`.
111- pub fn client ( mut self , client : ReqwestClient ) -> Self {
111+ pub fn client ( mut self , client : InnerClient ) -> Self {
112112 self . client = Some ( client) ;
113113 self
114114 }
@@ -149,7 +149,7 @@ impl HttpClient {
149149 /// Construct a new Tendermint RPC HTTP/S client connecting to the given
150150 /// URL. This avoids using the `Builder` and thus does not perform any
151151 /// validation of the configuration.
152- pub fn new_from_parts ( inner : ReqwestClient , url : reqwest:: Url , compat : CompatMode ) -> Self {
152+ pub fn new_from_parts ( inner : InnerClient , url : reqwest:: Url , compat : CompatMode ) -> Self {
153153 Self { inner, url, compat }
154154 }
155155
0 commit comments