From 3d1419ad681c88da758e533afd26f319b32e21cd Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Mon, 28 Nov 2022 19:29:30 +0530 Subject: Use expect here too. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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"); } -- cgit v1.2.3