Skip to content

Commit

Permalink
Add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Nov 27, 2023
1 parent 861921f commit 84eac32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions muxers/yamux/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ impl WindowUpdateMode {
/// > size must be tuned appropriately for the desired
/// > throughput and level of tolerance for (temporarily)
/// > slow receivers.
#[deprecated(note = "Use `WindowUpdateMode::on_read` instead.")]
pub fn on_receive() -> Self {
#[allow(deprecated)]
WindowUpdateMode(yamux::WindowUpdateMode::OnReceive)
}

Expand Down

0 comments on commit 84eac32

Please sign in to comment.