diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-06 14:24:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-06 14:24:00 +0100 |
commit | 9bd922adf931e1ba2cf2ec55995c06420fe8c46c (patch) | |
tree | f2cbd3cd2cbbe61376d826cf85fa76923fea0a1e /src/main.rs | |
parent | 8d1162f20694d5d8551879e7ba9b34c817f0caed (diff) | |
download | tricot-9bd922adf931e1ba2cf2ec55995c06420fe8c46c.tar.gz tricot-9bd922adf931e1ba2cf2ec55995c06420fe8c46c.zip |
Cargo clippydocker-44
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 34c80f8..79c4a9b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,10 +192,10 @@ async fn main() { let dump_task = tokio::spawn(dump_config_on_change(rx_proxy_config, exit_signal.clone())); - let _ = metrics_task.await.expect("Tokio task await failure"); - let _ = http_task.await.expect("Tokio task await failure"); - let _ = https_task.await.expect("Tokio task await failure"); - let _ = dump_task.await.expect("Tokio task await failure"); + metrics_task.await.expect("Tokio task await failure"); + http_task.await.expect("Tokio task await failure"); + https_task.await.expect("Tokio task await failure"); + dump_task.await.expect("Tokio task await failure"); } async fn dump_config_on_change( @@ -205,7 +205,7 @@ async fn dump_config_on_change( while !*must_exit.borrow() { select!( c = rx_proxy_config.changed() => { - if !c.is_ok() { + if c.is_err() { break; } } |