From ce4e7a8a43bce8d5f88ebda17a534e7e25268288 Mon Sep 17 00:00:00 2001 From: candifloss Date: Mon, 16 Sep 2024 00:58:06 +0530 Subject: [PATCH] commit --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}");