From 704be45e00745970dfba43f283090781b14be2a0 Mon Sep 17 00:00:00 2001 From: mokurin000 <1348292515a@gmail.com> Date: Wed, 30 Jul 2025 03:22:23 +0800 Subject: [PATCH] chore: ping does not need extra data --- sdgb-cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdgb-cli/src/main.rs b/sdgb-cli/src/main.rs index 1235a72..41b2f9a 100644 --- a/sdgb-cli/src/main.rs +++ b/sdgb-cli/src/main.rs @@ -19,7 +19,7 @@ async fn main() -> Result<(), Box> { match cmd.command { commands::Commands::Ping => { - let decoded = Sdgb1_40::request(&client, APIMethod::Ping, "1", Ping {}).await?; + let decoded = Sdgb1_40::request(&client, APIMethod::Ping, "", Ping {}).await?; info!("sdgb 1.40 resp: {:?}", String::from_utf8_lossy(&decoded)); let decoded = Sdgb1_50::request(&client, APIMethod::Ping, "", Ping {}).await?; info!("sdgb 1.50 resp: {:?}", String::from_utf8_lossy(&decoded));