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

@@ -151,7 +151,7 @@
<template #default="{ row }">
<div style="display: flex; flex-direction: column; gap: 1px; align-items: flex-start;">
<el-tag v-if="row.version" size="small" style="font-size: 11px; padding: 1px 4px;">{{ row.version
}}</el-tag>
}}</el-tag>
<span v-else class="text-muted" style="font-size: 11px;">未知</span>
<el-tag :type="row.allow_relay ? 'success' : 'info'" size="small"
style="font-size: 9px; padding: 1px 3px;">
@@ -281,7 +281,7 @@ import {
const loading = ref(false)
const nodes = ref([])
const searchText = ref('')
const statusFilter = ref('true')
const statusFilter = ref('')
const protocolFilter = ref('')
const detailDialogVisible = ref(false)
const selectedNode = ref(null)
@@ -292,7 +292,7 @@ const apiUrl = ref(window.location.href)
// 分页数据
const pagination = reactive({
page: 1,
per_page: 20,
per_page: 50,
total: 0
})

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;
}