Skip to content

Commit b34c071

Browse files
jayvdbdjc
authored andcommitted
redis: Support redis v1.0.0-rc.1
1 parent 7d13fe2 commit b34c071

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bb8-redis"
3-
version = "0.24.0"
3+
version = "0.25.0-rc.1"
44
edition = "2021"
55
rust-version = "1.75"
66
description = "Full-featured async (tokio-based) redis connection pool (like r2d2)"
@@ -9,7 +9,7 @@ repository = "https://github.com/djc/bb8"
99

1010
[dependencies]
1111
bb8 = { version = "0.9", path = "../bb8" }
12-
redis = { version = "0.32", default-features = false, features = ["tokio-comp"] }
12+
redis = { version = "1.0.0-rc.1", default-features = false, features = ["tokio-comp"] }
1313

1414
[dev-dependencies]
1515
futures-util = "0.3.15"

redis/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl bb8::ManageConnection for RedisConnectionManager {
6969
let pong: String = redis::cmd("PING").query_async(conn).await?;
7070
match pong.as_str() {
7171
"PONG" => Ok(()),
72-
_ => Err((ErrorKind::ResponseError, "ping request").into()),
72+
_ => Err((ErrorKind::Extension, "ping request").into()),
7373
}
7474
}
7575

0 commit comments

Comments
 (0)