From 13474a8d830d8989a8b363c8d8145797f55a127b Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Mon, 2 May 2022 10:41:26 +0200 Subject: [PATCH] Change a debug_assert to assert This is already asserted a few lines later anyway when calling `self.flow.send_data(len)` in the "updating connection flow" span. --- src/proto/streams/prioritize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/streams/prioritize.rs b/src/proto/streams/prioritize.rs index c2904aca..444b74ca 100644 --- a/src/proto/streams/prioritize.rs +++ b/src/proto/streams/prioritize.rs @@ -736,7 +736,7 @@ impl Prioritize { // There *must* be be enough connection level // capacity at this point. - debug_assert!(len <= self.flow.window_size()); + assert!(len <= self.flow.window_size()); tracing::trace!(len, "sending data frame");