mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
update dependencies
This commit is contained in:
@ -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"
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ path = "src/client.rs"
|
||||
|
||||
[dependencies]
|
||||
actix = "0.13"
|
||||
actix-codec = "0.4.1"
|
||||
actix-codec = "0.5"
|
||||
actix-files = "0.6"
|
||||
actix-web = "4"
|
||||
actix-web-actors = "4.1"
|
||||
@ -27,5 +27,5 @@ rand = "0.8"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
tokio = { version = "1.13.1", features = ["full"] }
|
||||
tokio-util = { version = "0.6", features = ["codec"] }
|
||||
tokio-util = { version = "0.7", features = ["codec"] }
|
||||
tokio-stream = "0.1.8"
|
||||
|
Reference in New Issue
Block a user