Remove total_requests_per_peer

This commit is contained in:
dapplion
2025-06-11 11:21:12 +02:00
parent 28d9d8b8e2
commit 7a03578795
5 changed files with 5 additions and 45 deletions

View File

@@ -1,6 +1,5 @@
use crate::sync::network_context::PeerGroup;
use beacon_chain::block_verification_types::RpcBlock;
use itertools::Itertools;
use lighthouse_network::rpc::methods::BlocksByRangeRequest;
use lighthouse_network::service::api_types::Id;
use lighthouse_network::PeerId;
@@ -46,12 +45,6 @@ impl BatchPeers {
pub fn column(&self, index: &ColumnIndex) -> Option<&PeerId> {
self.column_peers.of_index(&((*index) as usize))
}
pub fn iter_unique_peers(&self) -> impl Iterator<Item = &PeerId> {
std::iter::once(&self.block_peer)
.chain(self.column_peers.all())
.unique()
}
}
/// Allows customisation of the above constants used in other sync methods such as BackFillSync.