Skip to content

Commit

Permalink
fix: print execution error and set proper process status code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Sep 9, 2024
1 parent 2188b19 commit 1cb8cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.5.5"
version = "0.5.6"
edition = "2021"
publish = false
authors = ["FastEdge Development Team"]
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ async fn main() -> anyhow::Result<()> {
backoff: 64,
});
tokio::select! {
_ = http => {

res = http => {
res?
},
_ = tokio::signal::ctrl_c() => {
shutdown_coordinator.shutdown().await
Expand Down

0 comments on commit 1cb8cfc

Please sign in to comment.