xmpp/example: .await event handling in hello_bot

skip-changelog.

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-10-24 01:49:39 +02:00
commit f0d660315f
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2

View file

@ -79,7 +79,7 @@ async fn main() -> Result<(), Option<()>> {
tokio::select! {
events = client.wait_for_events() => {
for event in events {
let _ = handle_events(&mut client, event, &rooms);
let _ = handle_events(&mut client, event, &rooms).await;
}
},
_ = ctrl_c() => {