summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-02 17:42:49 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-02 17:42:49 +0000
commit9ff349a3cb1868bb2827047ed0f0d01a9a4c38c7 (patch)
treef73ccfc3dee3b249c6ce3b2ef191b57000f947dd /synapse/storage
parentImplement txns for AS (un)registration. (diff)
downloadsynapse-9ff349a3cb1868bb2827047ed0f0d01a9a4c38c7.tar.xz
Add defers in the right places.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/appservice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index db0c546211..dd9b349370 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -111,6 +111,7 @@ class ApplicationServiceStore(SQLBaseStore):
         self.cache = ApplicationServiceCache()
         self._populate_cache()
 
+    @defer.inlineCallbacks
     def unregister_app_service(self, token):
         """Unregisters this service.
 
@@ -150,6 +151,7 @@ class ApplicationServiceStore(SQLBaseStore):
         )
         return True
 
+    @defer.inlineCallbacks
     def update_app_service(self, service):
         """Update an application service, clobbering what was previously there.