Remove deprecated keep_alive call

It doesn't need to be replaced, as the behavior we specified explititly
is the default
This commit is contained in:
Jonas Platte 2020-03-10 12:04:39 +01:00
parent db1c95015c
commit 1d689b2d7f
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -136,7 +136,7 @@ impl HttpClient {
pub fn new(homeserver_url: Url, session: Option<Session>) -> Self {
Self(Arc::new(ClientData {
homeserver_url,
hyper: HyperClient::builder().keep_alive(true).build_http(),
hyper: HyperClient::builder().build_http(),
session: Mutex::new(session),
}))
}
@ -154,7 +154,7 @@ impl HttpsClient {
Self(Arc::new(ClientData {
homeserver_url,
hyper: HyperClient::builder().keep_alive(true).build(connector),
hyper: HyperClient::builder().build(connector),
session: Mutex::new(session),
}))
}