Use expect here too.
authorSunil Nimmagadda <sunil@nimmagadda.net>
Mon, 28 Nov 2022 19:29:30 +0530
changeset 5 b5394b113889
parent 4 3438e31465db
child 6 847fed6198dc
Use expect here too.
src/main.rs
--- a/src/main.rs	Mon Nov 28 17:48:29 2022 +0530
+++ b/src/main.rs	Mon Nov 28 19:29:30 2022 +0530
@@ -39,5 +39,5 @@
             sighup_handler().await;
         }
     });
-    let (_, _, _) = tokio::join!(advert_handle, skew_handle, sighup_handle);
+    tokio::try_join!(advert_handle, skew_handle, sighup_handle).expect("task(s) erred");
 }