Updating packet buffer clear to be UDP-only
This commit is contained in:
parent
fa77ddd836
commit
84866f8f69
|
@ -181,6 +181,7 @@ impl<'a, H> PacketBuffer<'a, H> {
|
|||
}
|
||||
|
||||
/// Reset the packet buffer and clear any staged.
|
||||
#[cfg(feature(socket-udp))]
|
||||
pub(crate) fn reset(&mut self) {
|
||||
self.payload_ring.clear();
|
||||
self.metadata_ring.clear();
|
||||
|
|
Loading…
Reference in New Issue