Don't do preserve_fn for every request

pull/14/head
Erik Johnston 7 years ago
parent 89f90d808a
commit 157298f986
  1. 3
      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"):

Loading…
Cancel
Save