diff options
author | Kegan Dougal <kegan@matrix.org> | 2016-11-14 11:19:24 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2016-11-14 11:19:24 +0000 |
commit | 3991b4cbdb5f5fbdf61ad6efa879b3881143c214 (patch) | |
tree | 7bfdac2259cf1226931ca52a101c172eda0a1133 /synapse/rest/client/v2_alpha/sendtodevice.py | |
parent | Move .observe() up to the cache to make things neater (diff) | |
download | synapse-3991b4cbdb5f5fbdf61ad6efa879b3881143c214.tar.xz |
Clean transactions based on time. Add HttpTransactionCache tests.
Diffstat (limited to 'synapse/rest/client/v2_alpha/sendtodevice.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/sendtodevice.py | 2 |
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): |