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

update more examples and rustfmt

This commit is contained in:
Nikolay Kim
2019-03-09 18:03:09 -08:00
parent f39a53ea3a
commit e2945b9b39
48 changed files with 485 additions and 801 deletions

View File

@ -52,7 +52,8 @@ impl WsChatSession {
}
fut::ok(())
}).spawn(ctx);
})
.spawn(ctx);
}
fn list_rooms(&mut self, ctx: &mut ws::WebsocketContext<Self>) {
@ -66,7 +67,8 @@ impl WsChatSession {
}
}
fut::ok(())
}).spawn(ctx);
})
.spawn(ctx);
}
fn send_msg(&self, msg: &str) {
@ -158,7 +160,8 @@ fn main() {
.unwrap()
.index_file("index.html"),
)
}).bind("127.0.0.1:8080")
})
.bind("127.0.0.1:8080")
.unwrap()
.start();