Skip to content

Commit

Permalink
build(deps): update redis requirement from 0.23.0 to 0.24.0 (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-lin authored Jan 12, 2024
1 parent 6adda9c commit 30073e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/poem/redis-session/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ publish.workspace = true
poem = { workspace = true, features = ["redis-session"] }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tracing-subscriber.workspace = true
redis = { version = "0.23.0", features = ["aio", "tokio-comp", "connection-manager"] }
redis = { version = "0.24.0", features = ["aio", "tokio-comp", "connection-manager"] }
2 changes: 1 addition & 1 deletion poem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ chrono = { workspace = true, optional = true, default-features = false, features
time = { version = "0.3", optional = true }
mime_guess = { version = "2.0.3", optional = true }
rand = { version = "0.8.4", optional = true }
redis = { version = "0.23.0", optional = true, features = [
redis = { version = "0.24.0", optional = true, features = [
"aio",
"tokio-comp",
"connection-manager",
Expand Down
2 changes: 1 addition & 1 deletion poem/src/session/redis_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<T: ConnectionLike + Clone + Sync + Send> SessionStorage for RedisStorage<T>
) -> Result<()> {
let value = serde_json::to_string(entries).unwrap_or_default();
let cmd = match expires {
Some(expires) => Cmd::set_ex(session_id, value, expires.as_secs() as usize),
Some(expires) => Cmd::set_ex(session_id, value, expires.as_secs()),
None => Cmd::set(session_id, value),
};
cmd.query_async(&mut self.connection.clone())
Expand Down

0 comments on commit 30073e0

Please sign in to comment.