summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-12 13:57:24 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-12 14:28:07 +0100
commite53d77b5017e823506484bbb95964b4d97f3e2a1 (patch)
treee1408272effff81c8c8f87b243ecb64a59b16bc1 /synapse/storage/registration.py
parentAdd a better _store_room_member_txn() method that takes separated fields inst... (diff)
downloadsynapse-e53d77b5017e823506484bbb95964b4d97f3e2a1.tar.xz
Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index fd762bc643..db20b1daa0 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -62,7 +62,7 @@ class RegistrationStore(SQLBaseStore):
         Raises:
             StoreError if the user_id could not be registered.
         """
-        yield self._db_pool.runInteraction(self._register, user_id, token,
+        yield self.runInteraction(self._register, user_id, token,
                                            password_hash)
 
     def _register(self, txn, user_id, token, password_hash):
@@ -99,7 +99,7 @@ class RegistrationStore(SQLBaseStore):
         Raises:
             StoreError if no user was found.
         """
-        user_id = yield self._db_pool.runInteraction(self._query_for_auth,
+        user_id = yield self.runInteraction(self._query_for_auth,
                                                      token)
         defer.returnValue(user_id)