Skip to content

Commit

Permalink
Update to redis v0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra authored and bikeshedder committed Dec 14, 2023
1 parent 097c73d commit a700c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cluster = ["redis/cluster-async"]
deadpool = { path = "../", version = "0.10.0", default-features = false, features = [
"managed",
] }
redis = { version = "0.23", default-features = false, features = ["aio"] }
redis = { version = "0.24", default-features = false, features = ["aio"] }
serde_1 = { package = "serde", version = "1.0", features = [
"derive",
], optional = true }
Expand All @@ -38,7 +38,7 @@ serde_1 = { package = "serde", version = "1.0", features = [
config = { version = "0.13", features = ["json"] }
dotenv = "0.15.0"
futures = "0.3.15"
redis = { version = "0.23", default-features = false, features = [
redis = { version = "0.24", default-features = false, features = [
"tokio-comp",
] }
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
5 changes: 4 additions & 1 deletion redis/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ impl Default for Config {
}
}

/// This is a 1:1 copy of the [`redis::ConnectionAddr`] enumeration.
/// This is a 1:1 copy of the [`redis::ConnectionAddr`] enumeration (excluding `tls_params` since it is entirely opaque to consumers).
///
/// This is duplicated here in order to add support for the
/// [`serde::Deserialize`] trait which is required for the [`serde`] support.
#[derive(Clone, Debug)]
Expand Down Expand Up @@ -175,6 +176,7 @@ impl From<ConnectionAddr> for redis::ConnectionAddr {
host,
port,
insecure,
tls_params: None,
},
ConnectionAddr::Unix(path) => Self::Unix(path),
}
Expand All @@ -189,6 +191,7 @@ impl From<redis::ConnectionAddr> for ConnectionAddr {
host,
port,
insecure,
..
} => ConnectionAddr::TcpTls {
host,
port,
Expand Down

0 comments on commit a700c55

Please sign in to comment.