1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-20 08:31:09 +00:00

add more comments

This commit is contained in:
Nikolay Kim 2017-12-18 16:30:35 -08:00
parent fde94bfe95
commit 625c4ad0db

View file

@ -26,11 +26,12 @@ use diesel::prelude::*;
mod models;
mod schema;
/// State with DbExecutor address
struct State {
db: SyncAddress<DbExecutor>,
}
/// Async request handler
fn index(req: HttpRequest<State>) -> Box<Future<Item=HttpResponse, Error=Error>> {
let name = &req.match_info()["name"];