Skip to content

Commit 0c15943

Browse files
authored
refactor(client): remove no_keepalive method (#890)
This was a legacy option for disabling the connection pool, which could be confusing. The connection pool can still be disabled by setting pool_max_idle_per_host to `0`.
1 parent c84746a commit 0c15943

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/client/http/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -840,14 +840,6 @@ impl ClientBuilder {
840840
self
841841
}
842842

843-
/// Disable keep-alive for the client.
844-
#[inline]
845-
pub fn no_keepalive(mut self) -> ClientBuilder {
846-
self.config.pool_max_idle_per_host = 0;
847-
self.config.tcp_keepalive = None;
848-
self
849-
}
850-
851843
/// Restrict the Client to be used with HTTPS only requests.
852844
///
853845
/// Defaults to false.

0 commit comments

Comments
 (0)