diff --git a/src/yamux/connection.rs b/src/yamux/connection.rs index 5be7afb5..24370041 100644 --- a/src/yamux/connection.rs +++ b/src/yamux/connection.rs @@ -373,11 +373,7 @@ struct Active { new_outbound_stream_waker: Option, rtt: rtt::Rtt, - - /// A stream's `max_stream_receive_window` can grow beyond [`DEFAULT_CREDIT`], see - /// [`Stream::next_window_update`]. This field is the sum of the bytes by which all streams' - /// `max_stream_receive_window` have each exceeded [`DEFAULT_CREDIT`]. Used to enforce - /// [`Config::max_connection_receive_window`]. + ///Used to enforce [`Config::max_connection_receive_window`]. accumulated_max_stream_windows: Arc>, } diff --git a/src/yamux/connection/flow_control.rs b/src/yamux/connection/flow_control.rs index d9b1a562..295e2b2a 100644 --- a/src/yamux/connection/flow_control.rs +++ b/src/yamux/connection/flow_control.rs @@ -12,9 +12,7 @@ use crate::yamux::{ pub(crate) struct FlowController { config: Arc, last_window_update: Instant, - /// See [`Connection::rtt`]. rtt: Rtt, - /// See [`Connection::accumulated_max_stream_windows`]. accumulated_max_stream_windows: Arc>, receive_window: u32, max_receive_window: u32,