diff --git a/core/src/unprocessed_packet_batches.rs b/core/src/unprocessed_packet_batches.rs index d433111c5..84ee511d2 100644 --- a/core/src/unprocessed_packet_batches.rs +++ b/core/src/unprocessed_packet_batches.rs @@ -269,7 +269,8 @@ impl UnprocessedPacketBatches { } } - pub fn pop_max(&mut self) -> Option { + #[cfg(test)] + fn pop_max(&mut self) -> Option { self.packet_priority_queue .pop_max() .map(|immutable_packet| { @@ -281,7 +282,8 @@ impl UnprocessedPacketBatches { /// Pop up to the next `n` highest priority transactions from the queue. /// Returns `None` if the queue is empty - pub fn pop_max_n(&mut self, n: usize) -> Option> { + #[cfg(test)] + fn pop_max_n(&mut self, n: usize) -> Option> { let current_len = self.len(); if self.is_empty() { None