Skip to content

Commit 44bed65

Browse files
j4r0u53ksyyyr
authored andcommitted
Update shvrpc to 7.1.9
Fixes sites onlineStatus detection by making RPC discovery more robust.
1 parent aa2f72c commit 44bed65

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "historyprovider"
33
description = "historyprovider-rs"
44
license = "MIT"
55
repository = "https://github.com/silicon-heaven/historyprovider-rs"
6-
version = "2.6.0"
6+
version = "2.6.1"
77
edition = "2024"
88

99
[[bin]]
@@ -12,7 +12,7 @@ name = "hp"
1212
[dependencies]
1313
tokio = { version = "1.49.0", features = ["macros", "net", "rt", "rt-multi-thread", "sync", "time"] }
1414
shvproto = "3.6.27"
15-
shvrpc = "7.1.8"
15+
shvrpc = "7.1.9"
1616
shvclient = { version = "0.21.10", features = ["tokio"] }
1717
futures = "0.3.31"
1818
log = "0.4.29"
@@ -32,15 +32,11 @@ time = { version = "0.3.41", features = ["formatting"] }
3232
chrono = "0.4.42"
3333
humantime = "2.3.0"
3434

35-
# [patch."https://github.com/silicon-heaven/libshvclient-rs"]
36-
# shvclient = { path = "../libshvclient-rs" }
37-
#
38-
# [patch."https://github.com/silicon-heaven/libshvproto-rs"]
39-
# shvproto = { path = "../libshvproto-rs" }
40-
#
41-
# [patch."https://github.com/silicon-heaven/libshvrpc-rs"]
35+
[patch.crates-io]
4236
# shvrpc = { path = "../libshvrpc-rs" }
43-
#
37+
# shvproto = { path = "../libshvproto-rs" }
38+
# shvclient = { path = "../libshvclient-rs" }
39+
4440

4541
[dev-dependencies]
4642
async-broadcast = "0.7.2"

src/sites.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ fn online_status_worker(
298298
.timeout(ONLINE_TIMER)
299299
.exec(&client_commands)
300300
.await;
301+
debug!(target: "OnlineStatus", "[{site}] RPC call result: {dir_result:?}");
301302
if dir_result.is_ok() {
302303
set_online_status(&site, SiteOnlineStatus::Online, &client_commands, &app_state).await;
303304
} else if let Err(err) = dir_result && matches!(err.error(), CallRpcMethodErrorKind::RpcError(RpcError { .. })) {

0 commit comments

Comments
 (0)