1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

update dependencies

This commit is contained in:
Rob Ede
2022-03-04 16:28:40 +00:00
parent 418e6f2548
commit c3fd8e1315
19 changed files with 51 additions and 65 deletions

View File

@ -9,7 +9,7 @@ path = "src/main.rs"
[dependencies]
actix = "0.13"
actix-broker = "0.4"
actix-broker = "0.4.2"
actix-files = "0.6"
actix-web = "4"
actix-web-actors = "4.1"

View File

@ -49,7 +49,7 @@ impl WsChatServer {
let mut room = self.take_room(room_name)?;
for (id, client) in room.drain() {
if client.do_send(ChatMessage(msg.to_owned())).is_ok() {
if client.try_send(ChatMessage(msg.to_owned())).is_ok() {
self.add_client_to_room(room_name, Some(id), client);
}
}