mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
@cached() annotate get_user_by_token() - achieves a minor DB performance improvement
This commit is contained in:
parent
1489521ee5
commit
93978c5e2b
2 changed files with 7 additions and 2 deletions
|
@ -388,7 +388,7 @@ class Auth(object):
|
|||
AuthError if no user by that token exists or the token is invalid.
|
||||
"""
|
||||
try:
|
||||
ret = yield self.store.get_user_by_token(token=token)
|
||||
ret = yield self.store.get_user_by_token(token)
|
||||
if not ret:
|
||||
raise StoreError(400, "Unknown token")
|
||||
user_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue