summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-06 16:16:14 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-06 16:16:14 +0000
commit2602ddc379f9bede21cafc8c8f7f57dec44cf69d (patch)
tree9c16e02b77a60ca1f7987a55a68a83336ff09165 /synapse/storage
parentFinish synapse.appservice.scheduler implementation. (diff)
downloadsynapse-2602ddc379f9bede21cafc8c8f7f57dec44cf69d.tar.xz
Apply clarity and docstrings
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/appservice.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index 6fde7dcc66..4447c8a2e1 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -383,7 +383,7 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
             service(ApplicationService): The service who the transaction is for.
             events(list<Event>): A list of events to put in the transaction.
         Returns:
-            ApplicationServiceTransaction: A new transaction.
+            AppServiceTransaction: A new transaction.
         """
         pass
 
@@ -399,3 +399,15 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
             successfully.
         """
         pass
+
+    def get_oldest_unsent_txn(self, service):
+        """Get the oldest transaction which has not been sent for this
+        service.
+
+        Args:
+            service(ApplicationService): The app service to get the oldest txn.
+        Returns:
+            A Deferred which resolves to an AppServiceTransaction or
+            None.
+        """
+        pass