Skip to content

Commit

Permalink
fix typos (#13489)
Browse files Browse the repository at this point in the history
  • Loading branch information
crStiv authored Dec 21, 2024
1 parent 82af170 commit 62bbc8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions bin/reth-bench/src/authenticated_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl InnerTransport {
reqwest::Client::builder().tls_built_in_root_certs(url.scheme() == "https");
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) =
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;

Expand All @@ -80,7 +80,7 @@ impl InnerTransport {
url: Url,
jwt: JwtSecret,
) -> 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) =
build_auth(jwt).map_err(|e| AuthenticatedTransportError::InvalidJwt(e.to_string()))?;

Expand Down Expand Up @@ -114,9 +114,9 @@ pub struct AuthenticatedTransport {
/// Also contains the current claims being used. This is used to determine whether or not we
/// should create another client.
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,
/// 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,
}

Expand Down Expand Up @@ -209,7 +209,7 @@ fn build_auth(secret: JwtSecret) -> eyre::Result<(Authorization, Claims)> {
pub struct AuthenticatedTransportConnect {
/// The URL to connect to.
url: Url,
/// The JWT secret used to authenticate the transport.
/// The JWT secret is used to authenticate the transport.
jwt: JwtSecret,
}

Expand Down
4 changes: 2 additions & 2 deletions bin/reth-bench/src/bench/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ use tracing::info;
/// queries, a [`BenchMode`] to determine whether the benchmark should run for a closed or open
/// range of blocks, and the next block to fetch.
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>,
/// The block provider used for block queries.
/// The block provider is used for block queries.
pub(crate) block_provider: RootProvider<Http<Client>, AnyNetwork>,
/// The benchmark mode, which defines whether the benchmark should run for a closed or open
/// range of blocks.
Expand Down
2 changes: 1 addition & 1 deletion bin/reth/src/commands/debug_cmd/merkle.rs
Original file line number Diff line number Diff line change
@@ -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 alloy_eips::BlockHashOrNumber;
use backon::{ConstantBuilder, Retryable};
Expand Down

0 comments on commit 62bbc8b

Please sign in to comment.