diff --git a/actix-limitation/CHANGES.md b/actix-limitation/CHANGES.md index 3b8ad8458..2a8889744 100644 --- a/actix-limitation/CHANGES.md +++ b/actix-limitation/CHANGES.md @@ -2,6 +2,8 @@ ## Unreleased - 2022-xx-xx +- Update `redis` dependency to `0.22`. + ## 0.4.0 - 2022-09-10 - Add `Builder::key_by` for setting a custom rate limit key function. diff --git a/actix-limitation/Cargo.toml b/actix-limitation/Cargo.toml index 7bdc460b8..44199f38f 100644 --- a/actix-limitation/Cargo.toml +++ b/actix-limitation/Cargo.toml @@ -23,7 +23,7 @@ actix-web = { version = "4", features = ["cookies"] } chrono = "0.4" derive_more = "0.99.7" log = "0.4" -redis = { version = "0.21", default-features = false, features = ["tokio-comp"] } +redis = { version = "0.22", default-features = false, features = ["tokio-comp"] } time = "0.3" # session diff --git a/actix-session/CHANGES.md b/actix-session/CHANGES.md index b7702f9cd..1973c33c7 100644 --- a/actix-session/CHANGES.md +++ b/actix-session/CHANGES.md @@ -3,6 +3,7 @@ ## Unreleased - 2021-xx-xx - Set secure attribute when adding a session removal cookie. [#300] +- Update `redis` dependency to `0.22`. [#300]: https://github.com/actix/actix-extras/pull/300 diff --git a/actix-session/Cargo.toml b/actix-session/Cargo.toml index d5c8b79a4..e02d15e26 100644 --- a/actix-session/Cargo.toml +++ b/actix-session/Cargo.toml @@ -46,7 +46,7 @@ actix-redis = { version = "0.12", optional = true } futures-core = { version = "0.3.7", default-features = false, optional = true } # redis-rs-session -redis = { version = "0.21", default-features = false, features = ["aio", "tokio-comp", "connection-manager"], optional = true } +redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true } [dev-dependencies] actix-session = { path = ".", features = ["cookie-session", "redis-actor-session", "redis-rs-session"] } diff --git a/actix-session/examples/authentication.rs b/actix-session/examples/authentication.rs index 0dc2274b5..400971051 100644 --- a/actix-session/examples/authentication.rs +++ b/actix-session/examples/authentication.rs @@ -21,7 +21,7 @@ struct User { impl User { fn authenticate(credentials: Credentials) -> Result { - // TODO: figure out why I keep getting hacked + // to do: figure out why I keep getting hacked /s if &credentials.password != "hunter2" { return Err(HttpResponse::Unauthorized().json("Unauthorized")); }