Skip to content

Commit

Permalink
fix: enable tls feature correctly (#6120)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 18, 2024
1 parent 7c99499 commit 63adf39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/rpc/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ reth-rpc-types.workspace = true
reth-provider = { workspace = true, features = ["test-utils"] }
reth-transaction-pool = { workspace = true, features = ["test-utils"] }
reth-network-api.workspace = true
reth-network.workspace = true
reth-rpc-engine-api.workspace = true
reth-revm = { workspace = true, features = ["js-tracer"] }
reth-tasks.workspace = true
Expand Down Expand Up @@ -47,7 +48,7 @@ hyper = "0.14.24"
jsonwebtoken = "8"

## required for optimism sequencer delegation
reqwest = { version = "0.11", default-features = false, features = ["rustls"], optional = true }
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"], optional = true }

# async
async-trait.workspace = true
Expand Down Expand Up @@ -87,6 +88,7 @@ optimism = [
"reth-primitives/optimism",
"reth-rpc-types-compat/optimism",
"reth-network-api/optimism",
"reth-network/optimism",
"reth-provider/optimism",
"reth-transaction-pool/optimism",
]
2 changes: 1 addition & 1 deletion crates/rpc/rpc/src/eth/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ where
blocking_task_pool,
fee_history_cache,
#[cfg(feature = "optimism")]
http_client: reqwest::Client::new(),
http_client: reqwest::Client::builder().use_rustls_tls().build().unwrap(),
};

Self { inner: Arc::new(inner) }
Expand Down

0 comments on commit 63adf39

Please sign in to comment.