1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +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

@ -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);
}
}