Skip to content

Commit f82bc8a

Browse files
committed
Fix redis healthcheck
1 parent 73ef3c7 commit f82bc8a

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

Cargo.lock

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

autopush-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ grpcio = { version = "=0.13.0", features = ["openssl"], optional = true }
5959
grpcio-sys = { version = "=0.13.0", optional = true }
6060
protobuf = { version = "=2.28.0", optional = true } # grpcio does not support protobuf 3+
6161
form_urlencoded = { version = "1.2", optional = true }
62-
redis = { version = "0.27.6", features = ["aio", "tokio-comp"]}
62+
redis = { version = "0.28.1", features = ["aio", "tokio-comp"]}
6363

6464
[dev-dependencies]
6565
mockito = "0.31"

autopush-common/src/db/redis/redis_client/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ impl DbClient for RedisClientImpl {
503503
}
504504

505505
async fn health_check(&self) -> DbResult<bool> {
506-
let _ = self.connection().await?;
506+
let mut con = self.connection().await?;
507+
let _: () = con.ping().await?;
507508
Ok(true)
508509
}
509510

0 commit comments

Comments
 (0)