Skip to content

Commit

Permalink
Clean_up/upb_push_comment (solana-labs#27707)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Sep 12, 2022
1 parent 8bb0acc commit 079bf56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/unprocessed_packet_batches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ impl UnprocessedPacketBatches {
(num_dropped_packets, num_dropped_tracer_packets)
}

/// Pushes a new `deserialized_packet` into the unprocessed packet batches if it does not already
/// exist.
///
/// Returns and drops the lowest priority packet if the buffer is at capacity.
pub fn push(&mut self, deserialized_packet: DeserializedPacket) -> Option<DeserializedPacket> {
if self
.message_hash_to_transaction
Expand Down

0 comments on commit 079bf56

Please sign in to comment.