summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-01 11:59:45 +0000
committerErik Johnston <erik@matrix.org>2018-03-01 11:59:45 +0000
commit157298f9862bd06e9268aed9cdffbc1c912fd74d (patch)
tree3e3b18227800fe82be81794fe9c509ec0969872d /synapse/replication
parentAdd some logging (diff)
downloadsynapse-157298f9862bd06e9268aed9cdffbc1c912fd74d.tar.xz
Don't do preserve_fn for every request
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/http/send_event.py3
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"):