소스 검색

Updating packet buffer clear to be UDP-only

Ryan Summers 3 년 전
부모
커밋
058e5b7886
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();