summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-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"):