mirror of
https://github.com/actix/examples
synced 2024-11-30 17:14:35 +01:00
upgrade redis example
This commit is contained in:
parent
271749c433
commit
5499c01c65
544
Cargo.lock
generated
544
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"] }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user