清理市场概览残留与 refresh_policy 中的 marketOverview 条目
This commit is contained in:
@@ -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]:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user