diff options
author | reivilibre <oliverw@matrix.org> | 2022-01-21 08:38:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 08:38:36 +0000 |
commit | 4c2096599c9780290703e14df63963e77d058dda (patch) | |
tree | 3dfd85174b46639a2dc7675c9ae53ce63096e2e2 /synapse/handlers | |
parent | Make `get_account_data_for_room_and_type` a tree cache (#11789) (diff) | |
download | synapse-4c2096599c9780290703e14df63963e77d058dda.tar.xz |
Make the `get_global_account_data_by_type_for_user` cache be a tree-cache whose key is prefixed with the user ID (#11788)
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index ffc6b748e8..7e2a892b63 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1619,7 +1619,7 @@ class SyncHandler: # TODO: Can we `SELECT ignored_user_id FROM ignored_users WHERE ignorer_user_id=?;` instead? ignored_account_data = ( await self.store.get_global_account_data_by_type_for_user( - AccountDataTypes.IGNORED_USER_LIST, user_id=user_id + user_id=user_id, data_type=AccountDataTypes.IGNORED_USER_LIST ) ) |