diff --git a/crates/metrics/src/common/mpsc.rs b/crates/metrics/src/common/mpsc.rs index 9d5c1c4848..e31408ee21 100644 --- a/crates/metrics/src/common/mpsc.rs +++ b/crates/metrics/src/common/mpsc.rs @@ -70,10 +70,11 @@ impl Clone for UnboundedMeteredSender { } } -/// A wrapper type around [Receiver](mpsc::UnboundedReceiver) that updates metrics on receive. +/// A wrapper type around [`UnboundedReceiver`](mpsc::UnboundedReceiver) that updates metrics on +/// receive. #[derive(Debug)] pub struct UnboundedMeteredReceiver { - /// The [Receiver](mpsc::UnboundedReceiver) that this wraps around + /// The [`UnboundedReceiver`](mpsc::UnboundedReceiver) that this wraps around receiver: mpsc::UnboundedReceiver, /// Holds metrics for this type metrics: MeteredReceiverMetrics, diff --git a/crates/net/network/src/transactions/mod.rs b/crates/net/network/src/transactions/mod.rs index 4b990304df..a6cf3c4d09 100644 --- a/crates/net/network/src/transactions/mod.rs +++ b/crates/net/network/src/transactions/mod.rs @@ -637,7 +637,7 @@ impl TransactionsManager { // // known txns have already been successfully fetched or received over gossip. // - // most hashes will be filtered out here since this the mempool protocol is a gossip + // most hashes will be filtered out here since the mempool protocol is a gossip // protocol, healthy peers will send many of the same hashes. // let hashes_count_pre_pool_filter = partially_valid_msg.len(); diff --git a/crates/prune/types/src/target.rs b/crates/prune/types/src/target.rs index df72347988..0c98a9dfd4 100644 --- a/crates/prune/types/src/target.rs +++ b/crates/prune/types/src/target.rs @@ -188,7 +188,7 @@ impl PruneModes { if let Some(PruneMode::Distance(limit)) = prune_mode { // check if distance exceeds the configured limit if distance > *limit { - // but only if have haven't pruned the target yet, if we dont have a checkpoint + // but only if we haven't pruned the target yet, if we don't have a checkpoint // yet, it's fully unpruned yet let pruned_height = checkpoint .and_then(|checkpoint| checkpoint.1.block_number) diff --git a/crates/rpc/rpc-builder/src/lib.rs b/crates/rpc/rpc-builder/src/lib.rs index b4edf62e5e..6010a9fe83 100644 --- a/crates/rpc/rpc-builder/src/lib.rs +++ b/crates/rpc/rpc-builder/src/lib.rs @@ -1525,7 +1525,7 @@ impl TransportRpcModuleConfig { self } - /// Sets the [`RpcModuleSelection`] for the http transport. + /// Sets the [`RpcModuleSelection`] for the ipc transport. pub fn with_ipc(mut self, ipc: impl Into) -> Self { self.ipc = Some(ipc.into()); self diff --git a/crates/rpc/rpc/src/miner.rs b/crates/rpc/rpc/src/miner.rs index ab8fa5e0cd..d91d35fc66 100644 --- a/crates/rpc/rpc/src/miner.rs +++ b/crates/rpc/rpc/src/miner.rs @@ -19,7 +19,7 @@ impl MinerApiServer for MinerApi { Ok(false) } - fn set_gas_limit(&self, _gas_price: U128) -> RpcResult { + fn set_gas_limit(&self, _gas_limit: U128) -> RpcResult { Ok(false) } } diff --git a/crates/stages/api/src/error.rs b/crates/stages/api/src/error.rs index b4bbf390e2..d52818e49a 100644 --- a/crates/stages/api/src/error.rs +++ b/crates/stages/api/src/error.rs @@ -91,7 +91,7 @@ pub enum StageError { /// Database is ahead of static file data. #[error("missing static file data for block number: {number}", number = block.block.number)] MissingStaticFileData { - /// Starting block with missing data. + /// Starting block with missing data. block: Box, /// Static File segment segment: StaticFileSegment, diff --git a/crates/storage/errors/src/db.rs b/crates/storage/errors/src/db.rs index 2eaf2fe44d..300491ed8a 100644 --- a/crates/storage/errors/src/db.rs +++ b/crates/storage/errors/src/db.rs @@ -32,7 +32,7 @@ pub enum DatabaseError { /// Failed to commit transaction changes into the database. #[error("failed to commit transaction changes: {_0}")] Commit(DatabaseErrorInfo), - /// Failed to initiate a transaction. + /// Failed to initialize a transaction. #[error("failed to initialize a transaction: {_0}")] InitTx(DatabaseErrorInfo), /// Failed to initialize a cursor. diff --git a/crates/storage/errors/src/provider.rs b/crates/storage/errors/src/provider.rs index 23c1c870bf..108c6076a5 100644 --- a/crates/storage/errors/src/provider.rs +++ b/crates/storage/errors/src/provider.rs @@ -183,7 +183,7 @@ impl ProviderError { other.downcast_ref() } - /// Returns true if the this type is a [`ProviderError::Other`] of that error + /// Returns true if this type is a [`ProviderError::Other`] of that error /// type. Returns false otherwise. pub fn is_other(&self) -> bool { self.as_other().map(|err| err.is::()).unwrap_or(false) diff --git a/docs/crates/db.md b/docs/crates/db.md index d17d29810b..38dc31736f 100644 --- a/docs/crates/db.md +++ b/docs/crates/db.md @@ -297,4 +297,4 @@ This chapter was packed with information, so let's do a quick review. The databa # Next Chapter -[Next Chapter]() +[Next Chapter](eth-wire.md)