feat: Добавлена синхронизация клиентских токенов при рестарте бэкенда

This commit is contained in:
AURUMVORXX
2025-10-28 00:47:37 +05:00
parent d45aafa407
commit aa6b5700ce
2 changed files with 5 additions and 0 deletions

View File

@@ -154,5 +154,8 @@ class Server:
case {'remove_temp_token': token}:
cls._temp_tokens.remove(token)
case {'init_temp_tokens': tokens}:
cls._temp_tokens = cls._temp_tokens + tokens.items()
case _:
raise ValueError(f'Неподдерживаемый тип PyG2O сообщения: {message}')