Skip to content

Commit

Permalink
fix: do not unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmauro committed Oct 31, 2024
1 parent de3a5e1 commit 582754b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/house_keeper/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ impl PeriodicJob for DatabaseHealthTask {
const SERVICE_NAME: &'static str = "DatabaseHealth";

async fn run_routine_task(&mut self) -> anyhow::Result<()> {
let mut conn = self.connection_pool.connection().await.unwrap();
let last_migration = conn.system_dal().get_last_migration().await.unwrap();
let mut conn = self.connection_pool.connection().await?;
let last_migration = conn.system_dal().get_last_migration().await?;

self.database_health_updater
.update(DatabaseInfo { last_migration }.into());
Expand Down

0 comments on commit 582754b

Please sign in to comment.