From a763531478e0d92b9ef9ed33391a4fdd345fed34 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 4 Oct 2024 01:18:29 +0200 Subject: [PATCH] update dependency redis from 0.25.4 to 0.27.2 --- Cargo.lock | 24 ++++++++++++++++++++++-- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 301d50d..751f95a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1355,6 +1355,25 @@ dependencies = [ "winapi", ] +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.19" @@ -1734,9 +1753,9 @@ dependencies = [ [[package]] name = "redis" -version = "0.25.4" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d7a6955c7511f60f3ba9e86c6d02b3c3f144f8c24b288d1f4e18074ab8bbec" +checksum = "a7e86f5670bd8b028edfb240f0616cad620705b31ec389d55e4f3da2c38dcd48" dependencies = [ "arc-swap", "async-trait", @@ -1745,6 +1764,7 @@ dependencies = [ "futures", "futures-util", "itoa", + "num-bigint", "percent-encoding", "pin-project-lite", "ryu", diff --git a/Cargo.toml b/Cargo.toml index 7e4d0a8..ffc3230 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,5 +30,5 @@ metrics-exporter-prometheus = "0.15" deunicode = "1.4" urlencoding = "2" httpdate = "1" -redis = { version = "0.25", features = ["tokio-comp", "connection-manager"] } +redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] } lru = "0.12" diff --git a/src/main.rs b/src/main.rs index d58771d..f1de7f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,7 +151,7 @@ async fn post_relay( if let Some((redis, in_topic)) = &state.redis { if let Ok(data) = serde_json::to_vec(&endpoint.payload) { if let Err(e) = redis::Cmd::publish(in_topic.as_ref(), data) - .query_async::<_, redis::Value>(&mut redis.clone()) + .query_async::(&mut redis.clone()) .await { tracing::error!("redis publish: {}", e);