Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9e5ddf7

Browse files
committed
Run cache_joined_hosts_for_event in background
1 parent 6c84778 commit 9e5ddf7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/9951.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve performance of sending events for worker-based deployments using Redis.

synapse/handlers/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ async def handle_new_client_event(
981981

982982
await self.action_generator.handle_push_actions_for_event(event, context)
983983

984-
await self.cache_joined_hosts_for_event(event, context)
984+
run_in_background(self.cache_joined_hosts_for_event, event, context)
985985

986986
try:
987987
# If we're a worker we need to hit out to the master.

0 commit comments

Comments
 (0)