Skip to content

Commit

Permalink
chore: make zip_blocks generic over header (#13199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Dec 7, 2024
1 parent 4fa86c5 commit 42a1ba3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/net/downloaders/src/bodies/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ use reth_network_p2p::bodies::response::BlockResponse;
use reth_primitives::{Block, BlockBody, SealedBlock, SealedHeader};
use std::collections::HashMap;

pub(crate) fn zip_blocks<'a>(
headers: impl Iterator<Item = &'a SealedHeader>,
bodies: &mut HashMap<B256, BlockBody>,
) -> Vec<BlockResponse> {
pub(crate) fn zip_blocks<'a, H: Clone + BlockHeader + 'a, B>(
headers: impl Iterator<Item = &'a SealedHeader<H>>,
bodies: &mut HashMap<B256, B>,
) -> Vec<BlockResponse<H, B>> {
headers
.into_iter()
.map(|header| {
Expand Down

0 comments on commit 42a1ba3

Please sign in to comment.