diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-03-08 20:00:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 14:00:07 -0500 |
commit | d6196efafcc312472464c882ab630bc3fbf7bd37 (patch) | |
tree | 661bc8b15d55f2f04776a2ea23e773e1506d6ee7 /synapse/handlers/room_list.py | |
parent | Warn that /register will soon require a type when called with an access token... (diff) | |
download | synapse-d6196efafcc312472464c882ab630bc3fbf7bd37.tar.xz |
Add ResponseCache tests. (#9458)
Diffstat (limited to 'synapse/handlers/room_list.py')
-rw-r--r-- | synapse/handlers/room_list.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py index 14f14db449..8bfc46c654 100644 --- a/synapse/handlers/room_list.py +++ b/synapse/handlers/room_list.py @@ -44,10 +44,10 @@ class RoomListHandler(BaseHandler): super().__init__(hs) self.enable_room_list_search = hs.config.enable_room_list_search self.response_cache = ResponseCache( - hs, "room_list" + hs.get_clock(), "room_list" ) # type: ResponseCache[Tuple[Optional[int], Optional[str], ThirdPartyInstanceID]] self.remote_response_cache = ResponseCache( - hs, "remote_room_list", timeout_ms=30 * 1000 + hs.get_clock(), "remote_room_list", timeout_ms=30 * 1000 ) # type: ResponseCache[Tuple[str, Optional[int], Optional[str], bool, Optional[str]]] async def get_local_public_room_list( |