Skip to content

Commit

Permalink
cancel token on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ragibkl committed Jan 2, 2024
1 parent 45c3018 commit 4186ac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async fn main() -> anyhow::Result<()> {
tracing::info!("engine-update running db update");
if let Err(err) = cloned_engine.run_update().await {
tracing::info!("engine-update running db update. ERROR: {err}");
cloned_token.cancel();
return;
}
tracing::info!("engine-update running db update. DONE");
Expand Down

0 comments on commit 4186ac6

Please sign in to comment.