fix style and format

This commit is contained in:
hson
2022-05-12 02:08:32 +09:00
committed by Sean McArthur
parent 0b9b499356
commit 48a88fee7a

View File

@@ -954,11 +954,14 @@ impl ClientBuilder {
/// ///
/// Pass `None` to disable HTTP2 keep-alive. /// Pass `None` to disable HTTP2 keep-alive.
/// Default is currently disabled. /// 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.config.http2_keep_alive_interval = interval.into();
self self
} }
/// Sets a timeout for receiving an acknowledgement of the keep-alive ping. /// 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. /// If the ping is not acknowledged within the timeout, the connection will be closed.
@@ -968,7 +971,7 @@ impl ClientBuilder {
self.config.http2_keep_alive_timeout = Some(timeout); self.config.http2_keep_alive_timeout = Some(timeout);
self self
} }
/// Sets whether HTTP2 keep-alive should apply while the connection is idle. /// 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. /// If disabled, keep-alive pings are only sent while there are open request/responses streams.