Skip to content

Commit 48a88fe

Browse files
hsonseanmonstar
authored andcommitted
fix style and format
1 parent 0b9b499 commit 48a88fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/async_impl/client.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,14 @@ impl ClientBuilder {
954954
///
955955
/// Pass `None` to disable HTTP2 keep-alive.
956956
/// Default is currently disabled.
957-
pub fn http2_keep_alive_interval(mut self, interval: impl Into<Option<Duration>>) -> ClientBuilder {
957+
pub fn http2_keep_alive_interval(
958+
mut self,
959+
interval: impl Into<Option<Duration>>,
960+
) -> ClientBuilder {
958961
self.config.http2_keep_alive_interval = interval.into();
959962
self
960963
}
961-
964+
962965
/// Sets a timeout for receiving an acknowledgement of the keep-alive ping.
963966
///
964967
/// If the ping is not acknowledged within the timeout, the connection will be closed.
@@ -968,7 +971,7 @@ impl ClientBuilder {
968971
self.config.http2_keep_alive_timeout = Some(timeout);
969972
self
970973
}
971-
974+
972975
/// Sets whether HTTP2 keep-alive should apply while the connection is idle.
973976
///
974977
/// If disabled, keep-alive pings are only sent while there are open request/responses streams.

0 commit comments

Comments
 (0)