summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-23 18:28:15 +0100
committerErik Johnston <erik@matrix.org>2024-07-23 18:28:15 +0100
commit4ce3e51f8db599301413b051b52a9b0cff9caf1c (patch)
treec7124d0af63630ffe299e95653a689585d1c5194
parentApply suggestions from code review (diff)
downloadsynapse-4ce3e51f8db599301413b051b52a9b0cff9caf1c.tar.xz
Ensure there is only one SlidingSyncHandler
-rw-r--r--synapse/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 4a3f9ff934..46b9d83a04 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -559,6 +559,7 @@ class HomeServer(metaclass=abc.ABCMeta):
     def get_sync_handler(self) -> SyncHandler:
         return SyncHandler(self)
 
+    @cache_in_self
     def get_sliding_sync_handler(self) -> SlidingSyncHandler:
         return SlidingSyncHandler(self)