Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Nov 22, 2024
1 parent 2d10061 commit d5e1739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async fn run_migrations(app_state: &AppState) -> Result<(), MainError> {
Ok(_) => {
return migration_res
.context("Failed to run db migrations")
.into_db_error()
.into_db_error();
}
Err(e) => {
tracing::debug!(
Expand Down
4 changes: 3 additions & 1 deletion chain/src/services/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ pub async fn run_migrations(conn: Object) -> anyhow::Result<()> {
conn.interact(|transaction_conn| {
transaction_conn
.run_pending_migrations(MIGRATIONS)
.map_err(|e| anyhow!("Failed to run db migrations: {}", e.to_string()))?;
.map_err(|e| {
anyhow!("Failed to run db migrations: {}", e.to_string())
})?;
anyhow::Ok(())
})
.await
Expand Down

0 comments on commit d5e1739

Please sign in to comment.