mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-24 19:25:57 +00:00
Don't do preserve_fn for every request
This commit is contained in:
parent
89f90d808a
commit
157298f986
@ -122,10 +122,11 @@ class ReplicationSendEventRestServlet(RestServlet):
|
|||||||
logger.warn("Returning cached response")
|
logger.warn("Returning cached response")
|
||||||
result = self.response_cache.set(
|
result = self.response_cache.set(
|
||||||
event_id,
|
event_id,
|
||||||
preserve_fn(self._handle_request)(request)
|
self._handle_request(request)
|
||||||
)
|
)
|
||||||
return make_deferred_yieldable(result)
|
return make_deferred_yieldable(result)
|
||||||
|
|
||||||
|
@preserve_fn
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _handle_request(self, request):
|
def _handle_request(self, request):
|
||||||
with Measure(self.clock, "repl_send_event_parse"):
|
with Measure(self.clock, "repl_send_event_parse"):
|
||||||
|
Loading…
Reference in New Issue
Block a user