diff --git a/src/proto/connection.rs b/src/proto/connection.rs index 727643a65..5d6ad13f2 100644 --- a/src/proto/connection.rs +++ b/src/proto/connection.rs @@ -448,6 +448,7 @@ where // This is handled by resetting the frame then trying to read // another frame. Err(Error::Reset(id, reason, initiator)) => { + #[cfg(not(fuzzing))] debug_assert_eq!(initiator, Initiator::Library); tracing::trace!(?id, ?reason, "stream error"); self.streams.send_reset(id, reason); diff --git a/src/proto/streams/store.rs b/src/proto/streams/store.rs index d33a01cce..dc7401c4e 100644 --- a/src/proto/streams/store.rs +++ b/src/proto/streams/store.rs @@ -226,6 +226,7 @@ impl Drop for Store { fn drop(&mut self) { use std::thread; + #[cfg(not(fuzzing))] if !thread::panicking() { debug_assert!(self.slab.is_empty()); }