summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-03-11 14:00:15 +0000
committerGitHub <noreply@github.com>2022-03-11 14:00:15 +0000
commit4a53f357379c2dc407617a3d39e6da4790dec9aa (patch)
treee73c980ce59d8c8735d36a55faf192488951fc31 /synapse/handlers/typing.py
parentAdd an additional HTTP pusher + push rule tests. (#12188) (diff)
downloadsynapse-4a53f357379c2dc407617a3d39e6da4790dec9aa.tar.xz
Improve code documentation for the typing stream over replication. (#12211)
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py5
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.