Update websocket dependencies

This commit is contained in:
Stjepan Glavina 2020-02-15 18:41:03 +01:00
parent cd9d44df94
commit c3fca0e900
2 changed files with 4 additions and 4 deletions

View File

@ -33,6 +33,6 @@ num_cpus = "1.12.0"
pin-utils = "0.1.0-alpha.4"
tokio = { version = "0.2", default-features = false }
async-tungstenite = "0.4.0"
url = "2.1.1"
async-tls = "0.6.0"
async-tungstenite = {git="https://github.com/sdroege/async-tungstenite"}
async-tls = {git="https://github.com/async-rs/async-tls"}
url = "*"

View File

@ -59,7 +59,7 @@ pub async fn websocket(
smol::Async::<std::net::TcpStream>::connect(format!("{}:{}", host, port)).await?;
let tls_stream = async_tls::TlsConnector::default()
.connect(host.to_ascii_lowercase(), tcp_stream)?
.connect(host.to_ascii_lowercase(), tcp_stream)
.await?;
let ws_request =