mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: fix spelling issues (#13978)
This commit is contained in:
@ -25,7 +25,7 @@ use std::{
|
||||
/// If the response arrived with insufficient number of bodies, the future
|
||||
/// will issue another request until all bodies are collected.
|
||||
///
|
||||
/// It then proceeds to verify the downloaded bodies. In case of an validation error,
|
||||
/// It then proceeds to verify the downloaded bodies. In case of a validation error,
|
||||
/// the future will start over.
|
||||
///
|
||||
/// The future will filter out any empty headers (see [`alloy_consensus::Header::is_empty`]) from
|
||||
|
||||
@ -175,7 +175,7 @@ impl<T: HeaderDownloader> Future for SpawnedDownloader<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Commands delegated tot the spawned [`HeaderDownloader`]
|
||||
/// Commands delegated to the spawned [`HeaderDownloader`]
|
||||
enum DownloaderUpdates<H> {
|
||||
UpdateSyncGap(SealedHeader<H>, SyncTarget),
|
||||
UpdateLocalHead(SealedHeader<H>),
|
||||
|
||||
@ -30,7 +30,7 @@ pub struct BodyDownloaderMetrics {
|
||||
pub buffered_responses: Gauge,
|
||||
/// The number of blocks the internal buffer of the
|
||||
/// downloader.
|
||||
/// These are bodies that have been received, but not cannot be committed yet because they're
|
||||
/// These are bodies that have been received, but cannot be committed yet because they're
|
||||
/// not contiguous
|
||||
pub buffered_blocks: Gauge,
|
||||
/// Total amount of memory used by the buffered blocks in bytes
|
||||
@ -101,7 +101,7 @@ pub struct HeaderDownloaderMetrics {
|
||||
pub buffered_responses: Gauge,
|
||||
/// The number of blocks the internal buffer of the
|
||||
/// downloader.
|
||||
/// These are bodies that have been received, but not cannot be committed yet because they're
|
||||
/// These are bodies that have been received, but cannot be committed yet because they're
|
||||
/// not contiguous
|
||||
pub buffered_blocks: Gauge,
|
||||
/// Total amount of memory used by the buffered blocks in bytes
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//! A Protocol defines a P2P subprotocol in a `RLPx` connection
|
||||
//! A Protocol defines a P2P subprotocol in an `RLPx` connection
|
||||
|
||||
use crate::{Capability, EthMessageID, EthVersion};
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ pub async fn connect_passthrough(
|
||||
p2p_stream
|
||||
}
|
||||
|
||||
/// A Rplx subprotocol for testing
|
||||
/// An Rplx subprotocol for testing
|
||||
pub mod proto {
|
||||
use super::*;
|
||||
use crate::{protocol::Protocol, Capability};
|
||||
|
||||
Reference in New Issue
Block a user