summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-15 10:24:07 +0100
committerErik Johnston <erik@matrix.org>2015-04-15 10:24:07 +0100
commitf9e12f79ca48bc87b395537438eaa74fa6d96745 (patch)
tree219a713d9389cf21378de0a2ff5ef2f428ca2557
parentCorrectly identify deadlocks (diff)
downloadsynapse-f9e12f79ca48bc87b395537438eaa74fa6d96745.tar.xz
Add missing yield in storage func
-rw-r--r--synapse/storage/registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 86fd2600fd..8a63fe4691 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -39,7 +39,7 @@ class RegistrationStore(SQLBaseStore):
         """
         next_id = yield self._access_tokens_id_gen.get_next()
 
-        self._simple_insert(
+        yield self._simple_insert(
             "access_tokens",
             {
                 "id": next_id,