1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

upgrade redis example

This commit is contained in:
Nikolay Kim 2018-07-21 07:00:04 -07:00
parent 271749c433
commit 5499c01c65
3 changed files with 157 additions and 395 deletions

544
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,6 @@ workspace = "../"
[dependencies]
env_logger = "0.5"
actix = "0.5"
actix-web = "^0.6"
actix-redis = { version = "0.4", features = ["web"] }
actix = "0.7"
actix-web = "0.7"
actix-redis = { version = "0.5", features = ["web"] }

View File

@ -11,7 +11,7 @@ use actix_web::middleware::session::{RequestSession, SessionStorage};
use actix_web::{middleware, server, App, HttpRequest, HttpResponse, Result};
/// simple handler
fn index(req: HttpRequest) -> Result<HttpResponse> {
fn index(req: &HttpRequest) -> Result<HttpResponse> {
println!("{:?}", req);
// session