Upgrade hyper to 0.14.11 (#9557)

* Upgrade hyper to 0.14.10

* fmt

* Enable required features
This commit is contained in:
Bastian Köcher
2021-08-13 20:31:40 +02:00
committed by GitHub
parent 7e9b8d278e
commit 1aadab917e
8 changed files with 70 additions and 198 deletions
+3 -3
View File
@@ -28,7 +28,7 @@
//! actively calling any function.
use crate::api::timestamp;
use bytes::buf::ext::{BufExt, Reader};
use bytes::buf::{Buf, Reader};
use fnv::FnvHashMap;
use futures::{channel::mpsc, future, prelude::*};
use hyper::{client, Body, Client as HyperClient};
@@ -51,7 +51,7 @@ pub struct SharedClient(Arc<HyperClient<HttpsConnector<client::HttpConnector>, B
impl SharedClient {
pub fn new() -> Self {
Self(Arc::new(HyperClient::builder().build(HttpsConnector::new())))
Self(Arc::new(HyperClient::builder().build(HttpsConnector::with_native_roots())))
}
}
@@ -719,7 +719,7 @@ mod tests {
let (addr_tx, addr_rx) = std::sync::mpsc::channel();
std::thread::spawn(move || {
let mut rt = tokio::runtime::Runtime::new().unwrap();
let rt = tokio::runtime::Runtime::new().unwrap();
let worker = rt.spawn(worker);
let server = rt.spawn(async move {
let server = hyper::Server::bind(&"127.0.0.1:0".parse().unwrap()).serve(