Skip to content

Commit

Permalink
chore: turn off reqwest default features
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir committed Dec 14, 2023
1 parent 351f990 commit 1d825ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ futures = "0.3.29"
hyper = "0.14.27"
itertools = "0.12"
pin-project = "1.1"
reqwest = "0.11.18"
reqwest = { version = "0.11.18", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.4"
Expand Down
4 changes: 4 additions & 0 deletions crates/providers/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ impl<T: Transport + Clone + Send + Sync> Provider<T> {
}
}

pub fn new_with_client(client: RpcClient<T>) -> Self {
Self { inner: client, from: None }
}

pub fn with_sender(mut self, from: Address) -> Self {
self.from = Some(from);
self
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc-client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<L> ClientBuilder<L> {

/// Create a new [`RpcClient`] with the given transport and the configured
/// layers.
fn transport<T>(self, transport: T, is_local: bool) -> RpcClient<L::Service>
pub fn transport<T>(self, transport: T, is_local: bool) -> RpcClient<L::Service>
where
L: Layer<T>,
T: Transport,
Expand Down

0 comments on commit 1d825ec

Please sign in to comment.