better reconnect and missed status handling

This commit is contained in:
2021-09-18 14:40:51 +02:00
parent 5c34aa11b5
commit b9dcf22016
4 changed files with 183 additions and 64 deletions
+6 -1
View File
@@ -116,7 +116,12 @@ async fn main() -> anyhow::Result<()> {
let mut handles = vec![];
for mut g in groups {
handles.push(tokio::spawn(async move { g.run().await }));
handles.push(tokio::spawn(async move {
match g.run().await {
Ok(()) => unreachable!(),
Err(e) => error!("GROUP FAILED! {}", e),
}
}));
}
futures::future::join_all(handles).await;