mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 19:51:00 +00:00
update dependency redis from 0.25.4 to 0.27.2
This commit is contained in:
parent
46550ac044
commit
a763531478
3 changed files with 24 additions and 4 deletions
24
Cargo.lock
generated
24
Cargo.lock
generated
|
@ -1355,6 +1355,25 @@ dependencies = [
|
||||||
"winapi",
|
"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]]
|
[[package]]
|
||||||
name = "num-traits"
|
name = "num-traits"
|
||||||
version = "0.2.19"
|
version = "0.2.19"
|
||||||
|
@ -1734,9 +1753,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
version = "0.25.4"
|
version = "0.27.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e0d7a6955c7511f60f3ba9e86c6d02b3c3f144f8c24b288d1f4e18074ab8bbec"
|
checksum = "a7e86f5670bd8b028edfb240f0616cad620705b31ec389d55e4f3da2c38dcd48"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
@ -1745,6 +1764,7 @@ dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"itoa",
|
"itoa",
|
||||||
|
"num-bigint",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
"ryu",
|
"ryu",
|
||||||
|
|
|
@ -30,5 +30,5 @@ metrics-exporter-prometheus = "0.15"
|
||||||
deunicode = "1.4"
|
deunicode = "1.4"
|
||||||
urlencoding = "2"
|
urlencoding = "2"
|
||||||
httpdate = "1"
|
httpdate = "1"
|
||||||
redis = { version = "0.25", features = ["tokio-comp", "connection-manager"] }
|
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
|
||||||
lru = "0.12"
|
lru = "0.12"
|
||||||
|
|
|
@ -151,7 +151,7 @@ async fn post_relay(
|
||||||
if let Some((redis, in_topic)) = &state.redis {
|
if let Some((redis, in_topic)) = &state.redis {
|
||||||
if let Ok(data) = serde_json::to_vec(&endpoint.payload) {
|
if let Ok(data) = serde_json::to_vec(&endpoint.payload) {
|
||||||
if let Err(e) = redis::Cmd::publish(in_topic.as_ref(), data)
|
if let Err(e) = redis::Cmd::publish(in_topic.as_ref(), data)
|
||||||
.query_async::<_, redis::Value>(&mut redis.clone())
|
.query_async::<redis::Value>(&mut redis.clone())
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
tracing::error!("redis publish: {}", e);
|
tracing::error!("redis publish: {}", e);
|
||||||
|
|
Loading…
Reference in a new issue