[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-27 07:42:12 +00:00
commit efda0b0c4c

View file

@ -43,8 +43,8 @@ router = APIRouter()
# Knobs (module-level so tests can monkeypatch).
MAX_HTML_PREVIEW_BYTES = 1_000_000 # 1 MiB; snippets, not full SPAs.
PREVIEW_TTL_SECONDS = 10 * 60 # 10 min interaction window.
MAX_LIVE_PREVIEWS = 256 # Per-process cap; oldest evicted first.
PREVIEW_TTL_SECONDS = 10 * 60 # 10 min interaction window.
MAX_LIVE_PREVIEWS = 256 # Per-process cap; oldest evicted first.
_PREVIEWS: dict[str, tuple[float, str]] = {}