Remove potentially too costly Packets::default() (#14821)

* Remove potentially too costly Packets::default()

* Fix test...

* Restore Packets::default()

* Restore Packets::default() more
This commit is contained in:
Ryo Onodera
2021-01-29 09:32:38 +09:00
committed by GitHub
parent 8993ac0c74
commit d6873b82ab
5 changed files with 11 additions and 17 deletions

View File

@ -1,7 +1,7 @@
//! The `packet` module defines data structures and methods to pull data from the network.
use crate::recvmmsg::{recv_mmsg, NUM_RCVMMSGS};
pub use solana_perf::packet::{
limited_deserialize, to_packets, to_packets_chunked, Packets, PacketsRecycler, NUM_PACKETS,
limited_deserialize, to_packets_chunked, Packets, PacketsRecycler, NUM_PACKETS,
PACKETS_BATCH_SIZE, PACKETS_PER_BATCH,
};