diff options
author | Erik Johnston <erik@matrix.org> | 2020-07-27 14:10:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 14:10:53 +0100 |
commit | 84d099ae1192af0f38d26f9a32e38bd4c0ad304e (patch) | |
tree | 525ead94bf5b196a855948896964b0242f6cecfa /synapse/server.pyi | |
parent | Remove hacky error handling for inlineDeferreds. (#7950) (diff) | |
download | synapse-84d099ae1192af0f38d26f9a32e38bd4c0ad304e.tar.xz |
Fix typing replication not being handled on master (#7959)
Handling of incoming typing stream updates from replication was not hooked up on master, effecting set ups where typing was handled on a different worker. This is really only a problem if the master process is also handling sync requests, which is unlikely for those that are at the stage of moving typing off. The other observable effect is that if a worker restarts or a replication connect drops then the typing worker will issue a `POSITION typing`, triggering master process to try and stream *all* typing updates from position 0. Fixes #7907
Diffstat (limited to '')
-rw-r--r-- | synapse/server.pyi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/server.pyi b/synapse/server.pyi index 90a673778f..1aba408c21 100644 --- a/synapse/server.pyi +++ b/synapse/server.pyi @@ -31,6 +31,7 @@ import synapse.server_notices.server_notices_sender import synapse.state import synapse.storage from synapse.events.builder import EventBuilderFactory +from synapse.handlers.typing import FollowerTypingHandler from synapse.replication.tcp.streams import Stream class HomeServer(object): @@ -150,3 +151,5 @@ class HomeServer(object): pass def should_send_federation(self) -> bool: pass + def get_typing_handler(self) -> FollowerTypingHandler: + pass |