From 62bbc8baa73a9179913426cce20554c1a82d4313 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 21 Dec 2024 10:56:40 +0100 Subject: [PATCH] fix typos (#13489) --- bin/reth-bench/src/authenticated_transport.rs | 10 +++++----- bin/reth-bench/src/bench/context.rs | 4 ++-- bin/reth/src/commands/debug_cmd/merkle.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/reth-bench/src/authenticated_transport.rs b/bin/reth-bench/src/authenticated_transport.rs index 72c4fd298898..b50cd4e1f30e 100644 --- a/bin/reth-bench/src/authenticated_transport.rs +++ b/bin/reth-bench/src/authenticated_transport.rs @@ -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()))?; @@ -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()))?; @@ -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>, - /// 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, } @@ -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, } diff --git a/bin/reth-bench/src/bench/context.rs b/bin/reth-bench/src/bench/context.rs index 59533bc6e979..352f880213ca 100644 --- a/bin/reth-bench/src/bench/context.rs +++ b/bin/reth-bench/src/bench/context.rs @@ -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, - /// The block provider used for block queries. + /// The block provider is used for block queries. pub(crate) block_provider: RootProvider, AnyNetwork>, /// The benchmark mode, which defines whether the benchmark should run for a closed or open /// range of blocks. diff --git a/bin/reth/src/commands/debug_cmd/merkle.rs b/bin/reth/src/commands/debug_cmd/merkle.rs index 13f93c51d6ca..26e7017a8b35 100644 --- a/bin/reth/src/commands/debug_cmd/merkle.rs +++ b/bin/reth/src/commands/debug_cmd/merkle.rs @@ -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};