diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-03-04 12:57:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 12:57:44 +0000 |
commit | 856c83f5f85d2890ab7de26578464328241ec3ba (patch) | |
tree | 55de4df11e70a0fbe76b661ddd8883919f6abd96 /synapse/handlers/typing.py | |
parent | Update test_typing to use HomeserverTestCase. (#4771) (diff) | |
download | synapse-856c83f5f85d2890ab7de26578464328241ec3ba.tar.xz |
Avoid rebuilding Edu objects in worker mode (#4770)
In worker mode, on the federation sender, when we receive an edu for sending over the replication socket, it is parsed into an Edu object. There is no point extracting the contents of it so that we can then immediately build another Edu.
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r-- | synapse/handlers/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index a61bbf9392..39df960c31 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -231,7 +231,7 @@ class TypingHandler(object): for domain in set(get_domain_from_id(u) for u in users): if domain != self.server_name: logger.debug("sending typing update to %s", domain) - self.federation.send_edu( + self.federation.build_and_send_edu( destination=domain, edu_type="m.typing", content={ |