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

@@ -480,21 +480,14 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
requester: RangeRequestId,
peers: Arc<RwLock<HashSet<PeerId>>>,
peers_to_deprioritize: &HashSet<PeerId>,
total_requests_per_peer: &HashMap<PeerId, usize>,
) -> Result<Id, RpcRequestSendError> {
let id = ComponentsByRangeRequestId {
id: self.next_id(),
requester,
};
let req = BlockComponentsByRangeRequest::new(
id,
request,
peers,
peers_to_deprioritize,
total_requests_per_peer,
self,
)?;
let req =
BlockComponentsByRangeRequest::new(id, request, peers, peers_to_deprioritize, self)?;
self.block_components_by_range_requests.insert(id, req);