Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a16925935 | ||
|
|
bb1659e076 |
No files matched your search
@@ -177,7 +177,7 @@ def _next_ws_id() -> int:
|
||||
|
||||
|
||||
def _format_ws_id(ws_id: int, *, bright: bool = False) -> str:
|
||||
value = str(ws_id) if ws_id >= 100 else f"{ws_id:02d}"
|
||||
value = f"{ws_id % 100:02d}"
|
||||
color = _WS_OPEN if bright else _WS_CLOSE
|
||||
return f"{color}{value.rjust(3)}{_RESET}"
|
||||
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ async def close_client():
|
||||
# Keyed by (credential hash, validation URL) so that entries for different
|
||||
# perms/renew flags coexist and all entries for a credential can be purged
|
||||
# on logout.
|
||||
_VALIDATE_CACHE_TTL = 10
|
||||
_VALIDATE_CACHE_TTL = 300
|
||||
_validate_cache: dict[tuple[str, str], tuple[float, dict]] = {}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user