Skip to content

Commit

Permalink
deps: bump yamux from 0.12.0 to 0.12.1
Browse files Browse the repository at this point in the history
Pull-Request: #4930.
  • Loading branch information
dependabot[bot] authored Nov 27, 2023
1 parent 4759ba8 commit dfce3cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions muxers/yamux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.45.1

- Deprecate `WindowUpdateMode::on_receive`.
It does not enforce flow-control, i.e. breaks backpressure.
Use `WindowUpdateMode::on_read` instead.
See `yamux` crate version `v0.12.1` and [Yamux PR #177](https://github.com/libp2p/rust-yamux/pull/177).

## 0.45.0

- Migrate to `{In,Out}boundConnectionUpgrade` traits.
Expand Down
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 dfce3cc

Please sign in to comment.