We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48f83a commit 3a313f9Copy full SHA for 3a313f9
python/src/wslink/backends/aiohttp/__init__.py
@@ -23,6 +23,8 @@
23
if HTTP_HEADERS and Path(HTTP_HEADERS).exists():
24
HTTP_HEADERS: dict = json.loads(Path(HTTP_HEADERS).read_text())
25
26
+STATE_KEY = aiohttp_web.AppKey("state", str)
27
+
28
logger = logging.getLogger(__name__)
29
30
# -----------------------------------------------------------------------------
@@ -92,7 +94,7 @@ def __init__(self, server_config):
92
94
self.app.router.add_route("GET", "/", _root_handler)
93
95
self.app.add_routes(routes)
96
- self.app["state"] = {}
97
+ self.app[STATE_KEY] = {}
98
99
# -------------------------------------------------------------------------
100
# Server status
0 commit comments