Skip to content

Commit

Permalink
build(deps): update redis requirement from 0.25 to 0.26 (#451)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
  • Loading branch information
dependabot[bot] and robjtede committed Jul 30, 2024
1 parent caa5dbc commit 2de4b18
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions actix-limitation/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Update `redis` dependency to `0.26`.

## 0.5.1

- No significant changes since `0.5.0`.
Expand Down
2 changes: 1 addition & 1 deletion actix-limitation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ actix-web = { version = "4", default-features = false, features = ["cookies"] }
chrono = "0.4"
derive_more = "0.99.7"
log = "0.4"
redis = { version = "0.25", default-features = false, features = ["tokio-comp"] }
redis = { version = "0.26", default-features = false, features = ["tokio-comp"] }
time = "0.3"

# session
Expand Down
1 change: 1 addition & 0 deletions actix-session/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Rename `redis-rs-tls-session` crate feature to `redis-session-native-tls`.
- Remove `redis-actor-session` crate feature (and, therefore, the `actix-redis` based storage backend).
- Expose `storage::generate_session_key()`.
- Update `redis` dependency to `0.26`.

## 0.9.0

Expand Down
2 changes: 1 addition & 1 deletion actix-session/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ serde_json = { version = "1" }
tracing = { version = "0.1.30", default-features = false, features = ["log"] }

# redis-session
redis = { version = "0.25", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
redis = { version = "0.26", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }

[dev-dependencies]
actix-session = { path = ".", features = ["cookie-session", "redis-session"] }
Expand Down
2 changes: 1 addition & 1 deletion actix-session/src/storage/redis_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl SessionStore for RedisSessionStore {
SaveError::Other(err) => UpdateError::Other(err),
})
}
Value::Int(_) | Value::Okay | Value::Status(_) => Ok(session_key),
Value::Int(_) | Value::Okay | Value::SimpleString(_) => Ok(session_key),
val => Err(UpdateError::Other(anyhow::anyhow!(
"Failed to update session state. {:?}",
val
Expand Down

0 comments on commit 2de4b18

Please sign in to comment.