mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix typos (#13489)
This commit is contained in:
@ -56,7 +56,7 @@ impl InnerTransport {
|
|||||||
reqwest::Client::builder().tls_built_in_root_certs(url.scheme() == "https");
|
reqwest::Client::builder().tls_built_in_root_certs(url.scheme() == "https");
|
||||||
let mut headers = reqwest::header::HeaderMap::new();
|
let mut headers = reqwest::header::HeaderMap::new();
|
||||||
|
|
||||||
// Add the JWT it to the headers if we can decode it.
|
// Add the JWT to the headers if we can decode it.
|
||||||
let (auth, claims) =
|
let (auth, claims) =
|
||||||
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;
|
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ impl InnerTransport {
|
|||||||
url: Url,
|
url: Url,
|
||||||
jwt: JwtSecret,
|
jwt: JwtSecret,
|
||||||
) -> Result<(Self, Claims), AuthenticatedTransportError> {
|
) -> Result<(Self, Claims), AuthenticatedTransportError> {
|
||||||
// Add the JWT it to the headers if we can decode it.
|
// Add the JWT to the headers if we can decode it.
|
||||||
let (auth, claims) =
|
let (auth, claims) =
|
||||||
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;
|
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;
|
||||||
|
|
||||||
@ -114,9 +114,9 @@ pub struct AuthenticatedTransport {
|
|||||||
/// Also contains the current claims being used. This is used to determine whether or not we
|
/// Also contains the current claims being used. This is used to determine whether or not we
|
||||||
/// should create another client.
|
/// should create another client.
|
||||||
inner_and_claims: Arc<RwLock<(InnerTransport, Claims)>>,
|
inner_and_claims: Arc<RwLock<(InnerTransport, Claims)>>,
|
||||||
/// The current jwt being used. This is so we can recreate claims.
|
/// The current jwt is being used. This is so we can recreate claims.
|
||||||
jwt: JwtSecret,
|
jwt: JwtSecret,
|
||||||
/// The current URL being used. This is so we can recreate the client if needed.
|
/// The current URL is being used. This is so we can recreate the client if needed.
|
||||||
url: Url,
|
url: Url,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ fn build_auth(secret: JwtSecret) -> eyre::Result<(Authorization, Claims)> {
|
|||||||
pub struct AuthenticatedTransportConnect {
|
pub struct AuthenticatedTransportConnect {
|
||||||
/// The URL to connect to.
|
/// The URL to connect to.
|
||||||
url: Url,
|
url: Url,
|
||||||
/// The JWT secret used to authenticate the transport.
|
/// The JWT secret is used to authenticate the transport.
|
||||||
jwt: JwtSecret,
|
jwt: JwtSecret,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,9 +18,9 @@ use tracing::info;
|
|||||||
/// queries, a [`BenchMode`] to determine whether the benchmark should run for a closed or open
|
/// queries, a [`BenchMode`] to determine whether the benchmark should run for a closed or open
|
||||||
/// range of blocks, and the next block to fetch.
|
/// range of blocks, and the next block to fetch.
|
||||||
pub(crate) struct BenchContext {
|
pub(crate) struct BenchContext {
|
||||||
/// The auth provider used for engine API queries.
|
/// The auth provider is used for engine API queries.
|
||||||
pub(crate) auth_provider: RootProvider<BoxTransport, AnyNetwork>,
|
pub(crate) auth_provider: RootProvider<BoxTransport, AnyNetwork>,
|
||||||
/// The block provider used for block queries.
|
/// The block provider is used for block queries.
|
||||||
pub(crate) block_provider: RootProvider<Http<Client>, AnyNetwork>,
|
pub(crate) block_provider: RootProvider<Http<Client>, AnyNetwork>,
|
||||||
/// The benchmark mode, which defines whether the benchmark should run for a closed or open
|
/// The benchmark mode, which defines whether the benchmark should run for a closed or open
|
||||||
/// range of blocks.
|
/// range of blocks.
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
//! Command for debugging merkle trie calculation.
|
//! Command for debugging merkle tree calculation.
|
||||||
use crate::{args::NetworkArgs, utils::get_single_header};
|
use crate::{args::NetworkArgs, utils::get_single_header};
|
||||||
use alloy_eips::BlockHashOrNumber;
|
use alloy_eips::BlockHashOrNumber;
|
||||||
use backon::{ConstantBuilder, Retryable};
|
use backon::{ConstantBuilder, Retryable};
|
||||||
|
|||||||
Reference in New Issue
Block a user