fix(bin): process metrics version mismatch (#5985)

This commit is contained in:
Alexey Shekhirin
2024-01-09 16:59:55 +00:00
committed by GitHub
parent 6ad221fd28
commit a1225be077
23 changed files with 69 additions and 55 deletions

View File

@ -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};

View File

@ -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,
};

View File

@ -435,7 +435,7 @@ where
}
#[cfg(test)]
mod test {
mod tests {
use crate::{
errors::EthStreamError, types::message::RequestPair, EthMessage, EthMessageID, GetNodeData,
NodeData, ProtocolMessage,

View File

@ -33,7 +33,7 @@ pub struct Receipts(
);
#[cfg(test)]
mod test {
mod tests {
use crate::{
types::{message::RequestPair, GetReceipts},
Receipts,

View File

@ -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};

View File

@ -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::{

View File

@ -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};