1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

update examples

This commit is contained in:
Nikolay Kim
2018-02-12 23:13:06 -08:00
parent b1eec3131f
commit 96b87761d1
6 changed files with 20 additions and 20 deletions

View File

@ -38,7 +38,7 @@ struct State {
fn index(req: HttpRequest<State>) -> Box<Future<Item=HttpResponse, Error=Error>> {
let name = &req.match_info()["name"];
req.state().db.call(CreateUser{name: name.to_owned()})
req.state().db.send(CreateUser{name: name.to_owned()})
.from_err()
.and_then(|res| {
match res {