Rename Packets to PacketBatch (#21794)
This commit is contained in:
@@ -182,7 +182,7 @@ impl<T: Default + Reset> RecyclerX<T> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use {super::*, crate::packet::PacketsRecycler, std::iter::repeat_with};
|
||||
use {super::*, crate::packet::PacketBatchRecycler, std::iter::repeat_with};
|
||||
|
||||
impl Reset for u64 {
|
||||
fn reset(&mut self) {
|
||||
@@ -209,7 +209,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_recycler_shrink() {
|
||||
let mut rng = rand::thread_rng();
|
||||
let recycler = PacketsRecycler::default();
|
||||
let recycler = PacketBatchRecycler::default();
|
||||
// Allocate a burst of packets.
|
||||
const NUM_PACKETS: usize = RECYCLER_SHRINK_SIZE * 2;
|
||||
{
|
||||
|
Reference in New Issue
Block a user