File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments