Skip to content

Commit

Permalink
yamux: Adjust documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Sep 26, 2024
1 parent 671d78f commit dd8f889
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src/yamux/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,7 @@ struct Active<T> {
new_outbound_stream_waker: Option<Waker>,

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<Mutex<usize>>,
}

Expand Down
2 changes: 0 additions & 2 deletions src/yamux/connection/flow_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ use crate::yamux::{
pub(crate) struct FlowController {
config: Arc<Config>,
last_window_update: Instant,
/// See [`Connection::rtt`].
rtt: Rtt,
/// See [`Connection::accumulated_max_stream_windows`].
accumulated_max_stream_windows: Arc<Mutex<usize>>,
receive_window: u32,
max_receive_window: u32,
Expand Down

0 comments on commit dd8f889

Please sign in to comment.