diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-18 06:08:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 11:08:26 +0000 |
commit | de1f8de3198a8052d0c84534a15b1f89357fe78b (patch) | |
tree | fbc2f4a6a06a08c8ec8bfd4af6b427b90d36de61 | |
parent | link to the scalability blog post from workers.md (diff) | |
download | synapse-de1f8de3198a8052d0c84534a15b1f89357fe78b.tar.xz |
Ensure the user ID is serialized in the payload instead of used as an instance name. (#9130)
-rw-r--r-- | changelog.d/9130.feature | 1 | ||||
-rw-r--r-- | synapse/handlers/devicemessage.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/9130.feature b/changelog.d/9130.feature new file mode 100644 index 0000000000..4ec319f1f2 --- /dev/null +++ b/changelog.d/9130.feature @@ -0,0 +1 @@ +Add experimental support for handling and persistence of to-device messages to happen on worker processes. diff --git a/synapse/handlers/devicemessage.py b/synapse/handlers/devicemessage.py index fc974a82e8..0c7737e09d 100644 --- a/synapse/handlers/devicemessage.py +++ b/synapse/handlers/devicemessage.py @@ -163,7 +163,7 @@ class DeviceMessageHandler: await self.store.mark_remote_user_device_cache_as_stale(sender_user_id) # Immediately attempt a resync in the background - run_in_background(self._user_device_resync, sender_user_id) + run_in_background(self._user_device_resync, user_id=sender_user_id) async def send_device_message( self, |