mirror of https://github.com/zulip/zulip.git
c8a2702b9a
This replaces the former non-functional StateHandler stub with a dictionary-like state object. Accessing it will will read and store strings in the BotUserStateData model. Each bot has a limited state size. To enforce this limit while keeping data updates efficient, StateHandler caches the expensive query for getting a bot's total state size. Assignments to a key then only need to fetch that entry's previous size, if any, and compare it to the new entry's size. |
||
---|---|---|
.. | ||
__init__.py | ||
queue_processors.py |