Clean transactions based on time. Add HttpTransactionCache tests.

This commit is contained in:
Kegan Dougal 2016-11-14 11:19:24 +00:00
parent af4a1bac50
commit 3991b4cbdb
5 changed files with 99 additions and 8 deletions

View file

@ -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):