mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 05:06:02 -04:00
Add transaction level logging and timing information. Add a _simple_delete method
This commit is contained in:
parent
967ce43b59
commit
da1dda3e1d
9 changed files with 91 additions and 21 deletions
|
@ -62,8 +62,10 @@ class RegistrationStore(SQLBaseStore):
|
|||
Raises:
|
||||
StoreError if the user_id could not be registered.
|
||||
"""
|
||||
yield self.runInteraction(self._register, user_id, token,
|
||||
password_hash)
|
||||
yield self.runInteraction(
|
||||
"register",
|
||||
self._register, user_id, token, password_hash
|
||||
)
|
||||
|
||||
def _register(self, txn, user_id, token, password_hash):
|
||||
now = int(self.clock.time())
|
||||
|
@ -100,6 +102,7 @@ class RegistrationStore(SQLBaseStore):
|
|||
StoreError if no user was found.
|
||||
"""
|
||||
return self.runInteraction(
|
||||
"get_user_by_token",
|
||||
self._query_for_auth,
|
||||
token
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue