Ver código fonte

Updating packet buffer clear to be UDP-only

Ryan Summers 3 anos atrás
pai
commit
058e5b7886
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/storage/packet_buffer.rs

+ 1 - 0
src/storage/packet_buffer.rs

@@ -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();