diff options
author | reivilibre <oliverw@matrix.org> | 2022-03-11 14:00:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 14:00:15 +0000 |
commit | 4a53f357379c2dc407617a3d39e6da4790dec9aa (patch) | |
tree | e73c980ce59d8c8735d36a55faf192488951fc31 /synapse/handlers | |
parent | Add an additional HTTP pusher + push rule tests. (#12188) (diff) | |
download | synapse-4a53f357379c2dc407617a3d39e6da4790dec9aa.tar.xz |
Improve code documentation for the typing stream over replication. (#12211)
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/typing.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index 3b89126528..6854428b7c 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -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. |