From 3d3ae4723f336fb59213bc15d48954809853099d Mon Sep 17 00:00:00 2001 From: 0/0 Date: Sun, 27 Aug 2023 09:30:37 +0000 Subject: [PATCH] Update `tokio-tungstenite` to 0.19 (#2522) Extra boolean parameter toggles Nagle's algorithm. As far as I can tell, Serenity has no use for this, and disabling it should have no major effect. --- Cargo.toml | 2 +- src/gateway/ws.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ab49c6894cb..eb579a25d13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ chrono = { version = "0.4.22", default-features = false, features = ["clock", "s flate2 = { version = "1.0.13", optional = true } reqwest = { version = "0.11.7", default-features = false, features = ["multipart", "stream"], optional = true } static_assertions = { version = "1.1", optional = true } -tokio-tungstenite = { version = "0.18", optional = true } +tokio-tungstenite = { version = "0.19", optional = true } typemap_rev = { version = "0.3.0", optional = true } bytes = { version = "1.0", optional = true } percent-encoding = { version = "2.1", optional = true } diff --git a/src/gateway/ws.rs b/src/gateway/ws.rs index 2db3f337718..2f1ecb9c97d 100644 --- a/src/gateway/ws.rs +++ b/src/gateway/ws.rs @@ -108,7 +108,7 @@ impl WsClient { max_send_queue: None, accept_unmasked_frames: false, }; - let (stream, _) = connect_async_with_config(url, Some(config)).await?; + let (stream, _) = connect_async_with_config(url, Some(config), false).await?; Ok(Self(stream)) }