Skip to content

Commit

Permalink
cargo: bump the patch group with 1 update (#1703)
Browse files Browse the repository at this point in the history
Bumps the patch group with 1 update:
[tokio-websockets](https://github.com/Gelbpunkt/tokio-websockets).

Updates `tokio-websockets` from 0.5.0 to 0.5.1

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dustin J. Mitchell <[email protected]>
  • Loading branch information
dependabot[bot] and djmitche authored Jan 17, 2024
1 parent e785962 commit 3b17afd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/exercises/concurrency/chat-async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"
futures-util = { version = "0.3.30", features = ["sink"] }
http = "1.0.0"
tokio = { version = "1.28.1", features = ["full"] }
tokio-websockets = { version = "0.5.0", features = ["client", "fastrand", "server", "sha1_smol"] }
tokio-websockets = { version = "0.5.1", features = ["client", "fastrand", "server", "sha1_smol"] }
4 changes: 3 additions & 1 deletion src/exercises/concurrency/chat-async/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ async fn handle_connection(
) -> Result<(), Box<dyn Error + Send + Sync>> {
// ANCHOR_END: handle_connection

ws_stream.send(Message::text("Welcome to chat! Type a message".into())).await?;
ws_stream
.send(Message::text("Welcome to chat! Type a message".to_string()))
.await?;
let mut bcast_rx = bcast_tx.subscribe();

// A continuous loop for concurrently performing two tasks: (1) receiving
Expand Down

0 comments on commit 3b17afd

Please sign in to comment.