From fb7c896fc7a2baaeabc4701e039b9d641ec2d0e9 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Tue, 29 Jul 2025 21:49:11 +0200 Subject: [PATCH] added missing client statement in register server --- WatcherAgent/Cargo.toml | 2 +- WatcherAgent/src/main.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WatcherAgent/Cargo.toml b/WatcherAgent/Cargo.toml index 741f6e1..708a8c3 100644 --- a/WatcherAgent/Cargo.toml +++ b/WatcherAgent/Cargo.toml @@ -11,7 +11,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.37", features = ["full"] } local-ip-address = "0.5" -reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "cookies", "rustls-tls", "statuscode"] } +reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "cookies", "rustls-tls"] } sysinfo = "0.29" metrics = "0.24.2" chrono = "0.4" diff --git a/WatcherAgent/src/main.rs b/WatcherAgent/src/main.rs index bcd6a57..b2c0da0 100644 --- a/WatcherAgent/src/main.rs +++ b/WatcherAgent/src/main.rs @@ -185,6 +185,11 @@ async fn register_with_server(base_url: &str) -> Result<(i32, String), Box Result<(i32, String), Box