From 1d689b2d7f5e5206b63e0d1276fb5c68d2083baa Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 10 Mar 2020 12:04:39 +0100 Subject: [PATCH] Remove deprecated `keep_alive` call It doesn't need to be replaced, as the behavior we specified explititly is the default --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b7274620..b71593e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,7 +136,7 @@ impl HttpClient { pub fn new(homeserver_url: Url, session: Option) -> 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), })) }