init
Docker Hub / build-and-push (push) Failing after 13s

This commit is contained in:
kislovdm
2026-06-12 00:42:55 +03:00
parent 64fe9c466e
commit e7c32da1f9
51 changed files with 2454 additions and 3248 deletions
+13
View File
@@ -0,0 +1,13 @@
import asyncio
class TopicLockRegistry:
def __init__(self) -> None:
self._locks: dict[int, asyncio.Lock] = {}
def lock(self, max_chat_id: int) -> asyncio.Lock:
lock = self._locks.get(max_chat_id)
if lock is None:
lock = asyncio.Lock()
self._locks[max_chat_id] = lock
return lock