浏览代码

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