fix: 避免连接测试阻塞事件循环

This commit is contained in:
2026-06-25 14:04:16 +08:00
parent c746080b3e
commit 1f9074eb41
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ router = APIRouter(tags=["remote"])
@router.post("/api/remote/test")
async def test_remote_connection(config: dict[str, Any] | None = Body(None)):
def test_remote_connection(config: dict[str, Any] | None = Body(None)):
app_config = state.current_config()
try:
if app_config.source_type == "metrix":