fix: initialize _ws_blacklist as set() instead of {}
Co-authored-by: Flowseal <50780822+Flowseal@users.noreply.github.com>
This commit is contained in:
parent
5228dbbdad
commit
0401a4c6bb
|
|
@ -39,7 +39,7 @@ _dc_opt: Dict[int, Optional[str]] = {}
|
||||||
# DCs where WS is known to fail (302 redirect)
|
# DCs where WS is known to fail (302 redirect)
|
||||||
# Raw TCP fallback will be used instead
|
# Raw TCP fallback will be used instead
|
||||||
# Keyed by (dc, is_media)
|
# Keyed by (dc, is_media)
|
||||||
_ws_blacklist: Set[Tuple[int, bool]] = {}
|
_ws_blacklist: Set[Tuple[int, bool]] = set()
|
||||||
|
|
||||||
# Rate-limit re-attempts per (dc, is_media)
|
# Rate-limit re-attempts per (dc, is_media)
|
||||||
_dc_fail_until: Dict[Tuple[int, bool], float] = {}
|
_dc_fail_until: Dict[Tuple[int, bool], float] = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue