mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-11 08:57:38 -05:00
Cache get_presence storage
This commit is contained in:
parent
6bba80241c
commit
9e617cd4c2
3 changed files with 15 additions and 5 deletions
|
|
@ -531,7 +531,7 @@ class PresenceHandler(object):
|
|||
# There are things not in our in memory cache. Lets pull them out of
|
||||
# the database.
|
||||
res = yield self.store.get_presence_for_users(missing)
|
||||
states.update({state.user_id: state for state in res})
|
||||
states.update(res)
|
||||
|
||||
missing = [user_id for user_id, state in states.items() if not state]
|
||||
if missing:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue