diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-08-26 14:13:32 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-08-26 14:13:32 +0100 |
commit | 732d954f89bb48e885072b9a50cf01c2cdd3e2cd (patch) | |
tree | 8790c53bc68d605fb44f0d4e1637489123185a50 /synapse/rest/base.py | |
parent | Added servlet for /rooms/$roomid/[invite|join|leave] (diff) | |
download | synapse-732d954f89bb48e885072b9a50cf01c2cdd3e2cd.tar.xz |
Added basic in-memory REST transaction storage. Only the latest transaction for a given path/access_token combo is stored in order to prevent storing ALL request/response pairs.
Diffstat (limited to 'synapse/rest/base.py')
-rw-r--r-- | synapse/rest/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/base.py b/synapse/rest/base.py index 6a88cbe866..e855d293e5 100644 --- a/synapse/rest/base.py +++ b/synapse/rest/base.py @@ -15,6 +15,7 @@ """ This module contains base REST classes for constructing REST servlets. """ from synapse.api.urls import CLIENT_PREFIX +from synapse.rest.transactions import HttpTransactionStore import re @@ -59,6 +60,7 @@ class RestServlet(object): self.handlers = hs.get_handlers() self.event_factory = hs.get_event_factory() self.auth = hs.get_auth() + self.txns = HttpTransactionStore() def register(self, http_server): """ Register this servlet with the given HTTP server. """ |