diff --git a/core/node/house_keeper/src/database.rs b/core/node/house_keeper/src/database.rs index 8fe7b78b890..0ee91d9dd8a 100644 --- a/core/node/house_keeper/src/database.rs +++ b/core/node/house_keeper/src/database.rs @@ -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());