attempt to heal when health check passes

This commit is contained in:
Aiden McClelland
2022-04-29 15:31:49 -06:00
committed by Aiden McClelland
parent 7c17e26480
commit 4ac03293ed

View File

@@ -5,7 +5,7 @@ use patch_db::{DbHandle, LockType};
use tracing::instrument;
use crate::context::RpcContext;
use crate::dependencies::{break_transitive, DependencyError};
use crate::dependencies::{break_transitive, heal_transitive, DependencyError};
use crate::s9pk::manifest::PackageId;
use crate::status::health_check::{HealthCheckId, HealthCheckResult};
use crate::status::MainStatus;
@@ -115,6 +115,8 @@ pub async fn check<Db: DbHandle>(
&mut BTreeMap::new(),
)
.await?;
} else {
heal_transitive(ctx, &mut tx, &dependent, id).await?;
}
}