From bbc9e03e47efc90898a084fd2f9a4e877ed5c1a7 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Mon, 8 Jul 2024 11:58:23 +0100 Subject: [PATCH] chore(deps): Update tokio-tungstenite -> 0.23 --- Cargo.toml | 2 +- src/ws.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 12ca30a..0ace83a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ stream_lib = { optional = true, version = "0.4.1" } symphonia = { default_features = false, optional = true, version = "0.5.2" } symphonia-core = { optional = true, version = "0.5.2" } tokio = { default-features = false, optional = true, version = "1.0" } -tokio-tungstenite = { optional = true, version = "0.21" } +tokio-tungstenite = { optional = true, version = "0.23" } tokio-util = { features = ["io"], optional = true, version = "0.7" } tracing = { version = "0.1", features = ["log"] } tracing-futures = "0.2" diff --git a/src/ws.rs b/src/ws.rs index 939ca45..7137212 100644 --- a/src/ws.rs +++ b/src/ws.rs @@ -22,8 +22,8 @@ pub struct WsStream(WebSocketStream>); impl WsStream { #[instrument] pub(crate) async fn connect(url: Url) -> Result { - let (stream, _) = tokio_tungstenite::connect_async_with_config::( - url, + let (stream, _) = tokio_tungstenite::connect_async_with_config( + url.to_string(), Some(Config { max_message_size: None, max_frame_size: None,