summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2022-11-28 19:29:30 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2022-11-28 19:29:30 +0530
commit3d1419ad681c88da758e533afd26f319b32e21cd (patch)
tree7247e5459aee61d90b24a32e460f3882db8acd1f
parent2a2030056332a919fbdb85d648d82c0d2937e8fc (diff)
Use expect here too.
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6034e12..66835b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -39,5 +39,5 @@ async fn main() {
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");
}