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:
parent
db1c95015c
commit
1d689b2d7f
@ -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),
|
||||
}))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user