solana/streamer
steviez 20b61e28b6
Flip iter operations to keep associated address/header/packets together (#22245)
Flip iter operations to keep associated address/header/packets together

Before this change, if cast_socket_addr() returned a None for any
address/header pair, the subsequent zip() would misalign the
address/header pair and packet. So, this change zips all three together,
then does filter_map() so keep things aligned.

Additionally, compute total_size inline to avoid running through packets
a second time.
2022-01-03 17:15:50 -06:00
..
src Flip iter operations to keep associated address/header/packets together (#22245) 2022-01-03 17:15:50 -06:00
tests Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
Cargo.toml removes unused Cargo dependencies (#22022) 2021-12-22 17:01:33 +00:00