mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(bin): process metrics version mismatch (#5985)
This commit is contained in:
@ -352,7 +352,7 @@ impl CanDisconnect<Bytes> for StreamClone {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use std::{net::SocketAddr, pin::Pin};
|
||||
|
||||
use futures::{Future, SinkExt, StreamExt};
|
||||
|
||||
@ -90,7 +90,7 @@ impl From<Vec<BlockBody>> for BlockBodies {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use crate::types::{
|
||||
message::RequestPair, BlockBodies, BlockHeaders, GetBlockBodies, GetBlockHeaders,
|
||||
};
|
||||
|
||||
@ -435,7 +435,7 @@ where
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use crate::{
|
||||
errors::EthStreamError, types::message::RequestPair, EthMessage, EthMessageID, GetNodeData,
|
||||
NodeData, ProtocolMessage,
|
||||
|
||||
@ -33,7 +33,7 @@ pub struct Receipts(
|
||||
);
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use crate::{
|
||||
types::{message::RequestPair, GetReceipts},
|
||||
Receipts,
|
||||
|
||||
@ -26,7 +26,7 @@ pub struct GetNodeData(pub Vec<B256>);
|
||||
pub struct NodeData(pub Vec<Bytes>);
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use reth_primitives::hex;
|
||||
|
||||
use crate::{message::RequestPair, GetNodeData, NodeData};
|
||||
|
||||
@ -54,7 +54,7 @@ impl From<Vec<TransactionSigned>> for PooledTransactions {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use crate::{message::RequestPair, GetPooledTransactions, PooledTransactions};
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use reth_primitives::{
|
||||
|
||||
@ -112,7 +112,7 @@ impl From<EthVersion> for &'static str {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::{EthVersion, ParseVersionError};
|
||||
use std::{convert::TryFrom, string::ToString};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user