summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2016-11-14 11:19:24 +0000
committerKegan Dougal <kegan@matrix.org>2016-11-14 11:19:24 +0000
commit3991b4cbdb5f5fbdf61ad6efa879b3881143c214 (patch)
tree7bfdac2259cf1226931ca52a101c172eda0a1133 /synapse/rest/client/v2_alpha
parentMove .observe() up to the cache to make things neater (diff)
downloadsynapse-3991b4cbdb5f5fbdf61ad6efa879b3881143c214.tar.xz
Clean transactions based on time. Add HttpTransactionCache tests.
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/sendtodevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/sendtodevice.py b/synapse/rest/client/v2_alpha/sendtodevice.py
index 2187350d42..ac660669f3 100644
--- a/synapse/rest/client/v2_alpha/sendtodevice.py
+++ b/synapse/rest/client/v2_alpha/sendtodevice.py
@@ -40,7 +40,7 @@ class SendToDeviceRestServlet(servlet.RestServlet):
         super(SendToDeviceRestServlet, self).__init__()
         self.hs = hs
         self.auth = hs.get_auth()
-        self.txns = HttpTransactionCache()
+        self.txns = HttpTransactionCache(hs.get_clock())
         self.device_message_handler = hs.get_device_message_handler()
 
     def on_PUT(self, request, message_type, txn_id):