fix: enable tls feature correctly (#6120)

This commit is contained in:
Matthias Seitz
2024-01-18 18:07:15 +01:00
committed by GitHub
parent 7c9949962b
commit 63adf39290
3 changed files with 5 additions and 2 deletions

1
Cargo.lock generated
View File

@ -6573,6 +6573,7 @@ dependencies = [
"reth-consensus-common",
"reth-interfaces",
"reth-metrics",
"reth-network",
"reth-network-api",
"reth-primitives",
"reth-provider",

View File

@ -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
@ -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
@ -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",
]

View File

@ -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) }