summary refs log tree commit diff
path: root/synapse/storage/appservice.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-06 17:35:14 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-06 17:35:14 +0000
commit406d32f8b514a572627eef1326d472e2825b2fe1 (patch)
tree6fcf87bebcd853e1e21ea00fea539a67ba285f41 /synapse/storage/appservice.py
parentMerge branch 'develop' into application-services-txn-reliability (diff)
downloadsynapse-406d32f8b514a572627eef1326d472e2825b2fe1.tar.xz
Start implementing ApplicationServiceTransactionStore
Diffstat (limited to '')
-rw-r--r--synapse/storage/appservice.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index 582269b8d5..0b272e82dd 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -374,7 +374,11 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
         Returns:
             A Deferred which resolves to True if the state was set successfully.
         """
-        pass
+        return self._simple_upsert(
+            "application_services_state",
+            dict(as_id=service.id),
+            dict(state=state)
+        )
 
     def create_appservice_txn(self, service, events):
         """Atomically creates a new transaction for this application service