From 48a88fee7a17d45cf5cc6da72aa03f2118408de3 Mon Sep 17 00:00:00 2001 From: hson Date: Thu, 12 May 2022 02:08:32 +0900 Subject: [PATCH] fix style and format --- src/async_impl/client.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index b6595f925..6f10139f6 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -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>) -> ClientBuilder { + pub fn http2_keep_alive_interval( + mut self, + interval: impl Into>, + ) -> 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. @@ -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.