From 43bb4ccbbaad63b4a116718810b3dab8d490b929 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Fri, 8 Mar 2024 14:02:37 +0100 Subject: [PATCH] chore: remove repetitive words (#7041) --- book/cli/reth/node.md | 2 +- crates/consensus/beacon/src/engine/mod.rs | 2 +- crates/node-core/src/args/rpc_server_args.rs | 2 +- crates/rpc/rpc-api/src/engine.rs | 2 +- crates/rpc/rpc-builder/src/lib.rs | 2 +- crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx.h | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/book/cli/reth/node.md b/book/cli/reth/node.md index 80072c1ab..63c9f2d90 100644 --- a/book/cli/reth/node.md +++ b/book/cli/reth/node.md @@ -226,7 +226,7 @@ RPC: [aliases: --rpc.returndata.limit] --rpc-max-subscriptions-per-connection - Set the the maximum concurrent subscriptions per connection + Set the maximum concurrent subscriptions per connection [default: 1024] diff --git a/crates/consensus/beacon/src/engine/mod.rs b/crates/consensus/beacon/src/engine/mod.rs index 5ae78a7ab..50781acaf 100644 --- a/crates/consensus/beacon/src/engine/mod.rs +++ b/crates/consensus/beacon/src/engine/mod.rs @@ -915,7 +915,7 @@ where total_difficulty: Default::default(), }; - // we update the the tracked header first + // we update the tracked header first self.blockchain.set_canonical_head(head); head_block.total_difficulty = diff --git a/crates/node-core/src/args/rpc_server_args.rs b/crates/node-core/src/args/rpc_server_args.rs index 54fe54b4b..0aeb767a3 100644 --- a/crates/node-core/src/args/rpc_server_args.rs +++ b/crates/node-core/src/args/rpc_server_args.rs @@ -139,7 +139,7 @@ pub struct RpcServerArgs { #[arg(long, visible_alias = "--rpc.returndata.limit", default_value_t = RPC_DEFAULT_MAX_RESPONSE_SIZE_MB.into())] pub rpc_max_response_size: MaxU32, - /// Set the the maximum concurrent subscriptions per connection. + /// Set the maximum concurrent subscriptions per connection. #[arg(long, default_value_t = RPC_DEFAULT_MAX_SUBS_PER_CONN.into())] pub rpc_max_subscriptions_per_connection: MaxU32, diff --git a/crates/rpc/rpc-api/src/engine.rs b/crates/rpc/rpc-api/src/engine.rs index 0223b44d7..acdc99a7e 100644 --- a/crates/rpc/rpc-api/src/engine.rs +++ b/crates/rpc/rpc-api/src/engine.rs @@ -74,7 +74,7 @@ pub trait EngineApi { /// Post Cancun forkchoice update handler /// /// This is the same as `forkchoiceUpdatedV2`, but expects an additional - /// `parentBeaconBlockRoot` field in the the `payloadAttributes`, if payload attributes + /// `parentBeaconBlockRoot` field in the `payloadAttributes`, if payload attributes /// are provided. /// /// See also diff --git a/crates/rpc/rpc-builder/src/lib.rs b/crates/rpc/rpc-builder/src/lib.rs index 3ae0bd8b4..b109966b1 100644 --- a/crates/rpc/rpc-builder/src/lib.rs +++ b/crates/rpc/rpc-builder/src/lib.rs @@ -2118,7 +2118,7 @@ impl RpcServer { pub fn http_local_addr(&self) -> Option { self.ws_http.http_local_addr } - /// Return the JwtSecret of the the server + /// Return the JwtSecret of the server pub fn jwt(&self) -> Option { self.ws_http.jwt_secret.clone() } diff --git a/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx.h b/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx.h index f702fc46b..7a3ae3196 100644 --- a/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx.h +++ b/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx.h @@ -2079,7 +2079,7 @@ enum MDBX_option_t { * for all processes interacting with the database. * * \details This defines the number of slots in the lock table that is used to - * track readers in the the environment. The default is about 100 for 4K + * track readers in the environment. The default is about 100 for 4K * system page size. Starting a read-only transaction normally ties a lock * table slot to the current thread until the environment closes or the thread * exits. If \ref MDBX_NOTLS is in use, \ref mdbx_txn_begin() instead ties the @@ -3343,7 +3343,7 @@ mdbx_limits_txnsize_max(intptr_t pagesize); * \ingroup c_settings * * \details This defines the number of slots in the lock table that is used to - * track readers in the the environment. The default is about 100 for 4K system + * track readers in the environment. The default is about 100 for 4K system * page size. Starting a read-only transaction normally ties a lock table slot * to the current thread until the environment closes or the thread exits. If * \ref MDBX_NOTLS is in use, \ref mdbx_txn_begin() instead ties the slot to the