improve uptime (#1365)

This commit is contained in:
Sijie.Sun
2025-09-13 19:14:13 +08:00
committed by GitHub
parent 5c90431876
commit b540ec3f46
3 changed files with 6 additions and 6 deletions

View File

@@ -299,7 +299,7 @@ pub async fn admin_get_nodes(
verify_admin_token(&headers)?;
let page = pagination.page.unwrap_or(1);
let per_page = pagination.per_page.unwrap_or(20);
let per_page = pagination.per_page.unwrap_or(200);
let offset = (page - 1) * per_page;
let mut query = entity::shared_nodes::Entity::find();

View File

@@ -436,7 +436,7 @@ impl HealthChecker {
);
self.instance_mgr
.run_network_instance(cfg.clone(), ConfigSource::FFI)
.run_network_instance(cfg.clone(), ConfigSource::Web)
.with_context(|| "failed to run network instance")?;
self.inst_id_map.insert(node_id, cfg.get_id());
@@ -650,7 +650,7 @@ impl HealthChecker {
node_id,
HealthStatus::Unhealthy,
None,
Some(e.to_string()),
Some(format!("inst id: {}, err: {}", inst_id, e)),
)
.await;
}