清理市场概览残留与 refresh_policy 中的 marketOverview 条目

This commit is contained in:
2569718930@qq.com
2026-05-25 23:06:44 +08:00
parent d1aa3550ba
commit b3aabe61ce
6 changed files with 10 additions and 11 deletions
+1 -3
View File
@@ -9,11 +9,9 @@ import time
from datetime import datetime
from typing import Any, Dict, List, Optional
from src.utils.refresh_policy import MARKET_OVERVIEW_TTL_SEC
_OVERVIEW_CACHE: Dict[str, Dict[str, Any]] = {}
_OVERVIEW_CACHE_LOCK = threading.Lock()
OVERVIEW_CACHE_TTL_SEC = MARKET_OVERVIEW_TTL_SEC
OVERVIEW_CACHE_TTL_SEC = 600
def _safe_float(value: Any) -> Optional[float]:
-1
View File
@@ -7,7 +7,6 @@ from typing import Any, Dict
from fastapi import HTTPException, Request
from fastapi.concurrency import run_in_threadpool
from web.services.market_overview_api import build_market_overview_payload
import web.routes as legacy_routes