diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-01 11:59:45 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-03-01 11:59:45 +0000 |
commit | 157298f9862bd06e9268aed9cdffbc1c912fd74d (patch) | |
tree | 3e3b18227800fe82be81794fe9c509ec0969872d /synapse/replication/http/send_event.py | |
parent | Add some logging (diff) | |
download | synapse-157298f9862bd06e9268aed9cdffbc1c912fd74d.tar.xz |
Don't do preserve_fn for every request
Diffstat (limited to 'synapse/replication/http/send_event.py')
-rw-r--r-- | synapse/replication/http/send_event.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/replication/http/send_event.py b/synapse/replication/http/send_event.py index f490622b63..665a56d2e6 100644 --- a/synapse/replication/http/send_event.py +++ b/synapse/replication/http/send_event.py @@ -122,10 +122,11 @@ class ReplicationSendEventRestServlet(RestServlet): logger.warn("Returning cached response") result = self.response_cache.set( event_id, - preserve_fn(self._handle_request)(request) + self._handle_request(request) ) return make_deferred_yieldable(result) + @preserve_fn @defer.inlineCallbacks def _handle_request(self, request): with Measure(self.clock, "repl_send_event_parse"): |