diff options
Diffstat (limited to 'filamento/examples/example.rs')
-rw-r--r-- | filamento/examples/example.rs | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |