From ba5ad94525940e3e34983425961550c67afc49ae Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Fri, 28 Mar 2025 22:44:11 +0000 Subject: feat(filamento): disco info requests --- filamento/examples/example.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'filamento/examples') diff --git a/filamento/examples/example.rs b/filamento/examples/example.rs index b1ab6ce..10267bc 100644 --- a/filamento/examples/example.rs +++ b/filamento/examples/example.rs @@ -20,7 +20,7 @@ async fn main() { }); client.connect().await.unwrap(); - tokio::time::sleep(Duration::from_secs(15)).await; + tokio::time::sleep(Duration::from_secs(5)).await; info!("sending message"); client .send_message( @@ -31,5 +31,9 @@ async fn main() { ) .await .unwrap(); - println!("sent message"); + info!("sent message"); + info!("sending disco query"); + let info = client.disco_info(None).await.unwrap(); + tokio::time::sleep(Duration::from_secs(5)).await; + info!("got disco result: {:#?}", info); } -- cgit