solana_perf::deduper

Function dedup_packets_and_count_discards

source
pub fn dedup_packets_and_count_discards<const K: usize>(
    deduper: &Deduper<K, [u8]>,
    batches: &mut [PacketBatch],
    process_received_packet: impl FnMut(&mut Packet, bool, bool),
) -> u64