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:
parent
fde94bfe95
commit
625c4ad0db
1 changed files with 2 additions and 1 deletions
|
@ -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"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue