diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-23 18:28:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-23 18:28:15 +0100 |
commit | 4ce3e51f8db599301413b051b52a9b0cff9caf1c (patch) | |
tree | c7124d0af63630ffe299e95653a689585d1c5194 | |
parent | Apply suggestions from code review (diff) | |
download | synapse-4ce3e51f8db599301413b051b52a9b0cff9caf1c.tar.xz |
Ensure there is only one SlidingSyncHandler
-rw-r--r-- | synapse/server.py | 1 |
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) |