This commit is contained in:
aglkm
2026-03-15 18:39:15 +03:00
parent 59a08d36e9
commit a0840ded3d
+1 -1
View File
@@ -159,7 +159,7 @@ pub async fn get_connected_peers(dashboard: Arc<Mutex<Dashboard>>, statistics: A
match call_external("get_connected_peers", "[]", "1", "owner", endpoint).await { match call_external("get_connected_peers", "[]", "1", "owner", endpoint).await {
Ok(resp) => { Ok(resp) => {
if resp != Value::Null { if resp != Value::Null {
if resp1["result"]["Ok"].is_null() == false { if resp["result"]["Ok"].is_null() == false {
for peer in resp["result"]["Ok"].as_array().unwrap() { for peer in resp["result"]["Ok"].as_array().unwrap() {
// Collecting user_agent nodes stats // Collecting user_agent nodes stats
if !addrs.contains(&peer["addr"].to_string()) { if !addrs.contains(&peer["addr"].to_string()) {