Skip to content

Commit 2c482e4

Browse files
chee-chyuanclaude
andcommitted
fix(eth-wire): remove duplicate MAX_MESSAGE_SIZE definition, fix fmt
MAX_MESSAGE_SIZE was moved to reth-eth-wire-types in v2.1.0 (#22668), so the local definition in ethstream.rs conflicted with the import. Also apply nightly fmt wrap to pool.rs doc comment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7093d7d commit 2c482e4

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

crates/net/eth-wire/src/ethstream.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ fn record_eth_message_metric(direction: &str, version: EthVersion, msg_id: u8, b
3838
reth_metrics::metrics::counter!(packets_name).increment(1);
3939
}
4040

41-
/// [`MAX_MESSAGE_SIZE`] is the maximum cap on the size of a protocol message.
42-
// https://github.com/ethereum/go-ethereum/blob/30602163d5d8321fbc68afdcbbaf2362b2641bde/eth/protocols/eth/protocol.go#L50
43-
pub const MAX_MESSAGE_SIZE: usize = 10 * 1024 * 1024;
44-
4541
/// An un-authenticated [`EthStream`]. This is consumed and returns a [`EthStream`] after the
4642
/// `Status` handshake is completed.
4743
#[pin_project]

crates/node/builder/src/components/pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ where
136136
V::Transaction:
137137
PoolTransaction<Consensus = TxTy<Node::Types>> + reth_transaction_pool::EthPoolTransaction,
138138
{
139-
/// Consume the type and build the [`reth_transaction_pool::Pool`] with the given config and blob
140-
/// store.
139+
/// Consume the type and build the [`reth_transaction_pool::Pool`] with the given config and
140+
/// blob store.
141141
pub fn build<BS>(
142142
self,
143143
blob_store: BS,

0 commit comments

Comments
 (0)