diff --git a/src/main.rs b/src/main.rs index 8c3b06a..28bcfc4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ fn print_notif(msg_body: Body) -> Result<()> { for (key, value) in hints { println!(" {key}: {value:?}"); } - println!("Expiration Timeout: {expir_timeout} seconds"); + println!("Expiration Timeout: {expir_timeout} seconds\n"); Ok(()) } @@ -45,10 +45,10 @@ async fn main() -> Result<()> { if let Some(member) = msg.header().member().map(|m| m.as_str()) { match member { "GetServerInformation" => { - println!("Member is: {member}"); // Respond with server information - let response = ("SNot", "candifloss.cc", "0.1.0", "1.0"); // (name, vendor, version, spec_version) + let response = ("SNot", "candifloss.cc", "0.1.0", "0.1.0"); // (name, vendor, version, spec_version) connection.reply(&msg, &response).await?; + println!("Request received: {member}\n\tName: SNot\n\tVendor: candifloss.cc\n\tVersion: 0.1.0\n\tSpec_version: 0.1.0"); } "Notify" => { println!("Member is: {member}");