mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-23 05:00:24 +03:00
Apply suggestions from code review
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
3069d3b01c
commit
39c4fe8c7e
1 changed files with 2 additions and 2 deletions
|
@ -725,7 +725,7 @@ class SyncHandler(object):
|
|||
|
||||
return summary
|
||||
|
||||
def get_lazy_loaded_members_cache(self, cache_key: Any) -> LruCache:
|
||||
def get_lazy_loaded_members_cache(self, cache_key: Tuple[str,str]) -> LruCache:
|
||||
cache = self.lazy_loaded_members_cache.get(cache_key)
|
||||
if cache is None:
|
||||
logger.debug("creating LruCache for %r", cache_key)
|
||||
|
@ -1274,7 +1274,7 @@ class SyncHandler(object):
|
|||
sync_result_builder: "SyncResultBuilder",
|
||||
newly_joined_rooms: Set[str],
|
||||
newly_joined_or_invited_users: Set[str],
|
||||
):
|
||||
) -> None:
|
||||
"""Generates the presence portion of the sync response. Populates the
|
||||
`sync_result_builder` with the result.
|
||||
|
||||
|
|
Loading…
Reference in a new issue