1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

migrate ci to github actions (#367)

This commit is contained in:
Rob Ede
2020-09-16 01:11:49 +01:00
committed by GitHub
parent e3c6a1ec07
commit d836b046c9
11 changed files with 6522 additions and 77 deletions

View File

@ -119,7 +119,7 @@ impl Handler<Connect> for ChatServer {
// auto join session to Main room
self.rooms
.entry("Main".to_owned())
.or_insert(HashSet::new())
.or_insert_with(HashSet::new)
.insert(id);
// send id back
@ -198,7 +198,7 @@ impl Handler<Join> for ChatServer {
self.rooms
.entry(name.clone())
.or_insert(HashSet::new())
.or_insert_with(HashSet::new)
.insert(id);
self.send_message(&name, "Someone connected", id);