Skip to content

Commit

Permalink
Fix Config::frame_read_rate() method
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 23, 2024
1 parent 87e1bcc commit e93e488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [0.5.4] - 2024-04-23

* Fix Config::frame_read_rate() method

## [0.5.3] - 2024-04-23

* Add frame read rate support
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-h2"
version = "0.5.3"
version = "0.5.4"
license = "MIT OR Apache-2.0"
authors = ["Nikolay Kim <[email protected]>"]
description = "An HTTP/2 client and server"
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl Config {
/// But no more than `max_timeout` timeout.
///
/// By default frame read rate is 256 bytes every seconds with no max timeout.
pub fn frame_read_rate(self, timeout: Seconds, max_timeout: Seconds, rate: u16) -> Self {
pub fn frame_read_rate(&self, timeout: Seconds, max_timeout: Seconds, rate: u16) -> &Self {
self.0
.dispatcher_config
.set_frame_read_rate(timeout, max_timeout, rate);
Expand Down

0 comments on commit e93e488

Please sign in to comment.