xmpp/example: .await event handling in hello_bot
skip-changelog. Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
15ac51829f
commit
f0d660315f
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ async fn main() -> Result<(), Option<()>> {
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
events = client.wait_for_events() => {
|
events = client.wait_for_events() => {
|
||||||
for event in events {
|
for event in events {
|
||||||
let _ = handle_events(&mut client, event, &rooms);
|
let _ = handle_events(&mut client, event, &rooms).await;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_ = ctrl_c() => {
|
_ = ctrl_c() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue