Skip to content

Commit eded429

Browse files
committed
minor changes
1 parent 9320124 commit eded429

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ semver = { version = "1.0", default-features = false }
9090
# Optional dependencies
9191
async-tungstenite = { version = "0.24", default-features = false, features = ["tokio-runtime", "tokio-rustls-native-certs"], optional = true }
9292
futures = { version = "0.3", optional = true, default-features = false }
93-
reqwest = { version = "0.12.12", optional = true, default-features = false, features = ["rustls-tls-native-roots"] }
93+
reqwest = { version = "0.12", optional = true, default-features = false, features = ["rustls-tls-native-roots"] }
9494
structopt = { version = "0.3", optional = true, default-features = false }
9595
tokio = { version = "1.0", optional = true, default-features = false, features = ["rt-multi-thread"] }
9696
tracing = { version = "0.1", optional = true, default-features = false }

rpc/src/client/transport/http.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use super::auth;
2323
const 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)]
5555
pub 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

7171
impl 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

Comments
 (0)