mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 05:54:09 -04:00
Improve code documentation for the typing stream over replication. (#12211)
This commit is contained in:
parent
735e89bd3a
commit
4a53f35737
5 changed files with 20 additions and 6 deletions
|
@ -160,8 +160,9 @@ class FollowerTypingHandler:
|
|||
"""Should be called whenever we receive updates for typing stream."""
|
||||
|
||||
if self._latest_room_serial > token:
|
||||
# The master has gone backwards. To prevent inconsistent data, just
|
||||
# clear everything.
|
||||
# The typing worker has gone backwards (e.g. it may have restarted).
|
||||
# To prevent inconsistent data, just clear everything.
|
||||
logger.info("Typing handler stream went backwards; resetting")
|
||||
self._reset()
|
||||
|
||||
# Set the latest serial token to whatever the server gave us.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue