Skip to content

Commit

Permalink
fix style and format
Browse files Browse the repository at this point in the history
  • Loading branch information
hson authored and seanmonstar committed May 17, 2022
1 parent 0b9b499 commit 48a88fe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,14 @@ impl ClientBuilder {
///
/// Pass `None` to disable HTTP2 keep-alive.
/// Default is currently disabled.
pub fn http2_keep_alive_interval(mut self, interval: impl Into<Option<Duration>>) -> ClientBuilder {
pub fn http2_keep_alive_interval(
mut self,
interval: impl Into<Option<Duration>>,
) -> ClientBuilder {
self.config.http2_keep_alive_interval = interval.into();
self
}

/// Sets a timeout for receiving an acknowledgement of the keep-alive ping.
///
/// If the ping is not acknowledged within the timeout, the connection will be closed.
Expand All @@ -968,7 +971,7 @@ impl ClientBuilder {
self.config.http2_keep_alive_timeout = Some(timeout);
self
}

/// Sets whether HTTP2 keep-alive should apply while the connection is idle.
///
/// If disabled, keep-alive pings are only sent while there are open request/responses streams.
Expand Down

0 comments on commit 48a88fe

Please sign in to comment.