Skip to content

Commit

Permalink
Update tokio-tungstenite to 0.19 (serenity-rs#2522)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tazz4843 authored Aug 27, 2023
1 parent d6c964f commit d779757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit d779757

Please sign in to comment.