mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-20 17:10:23 -04:00
parent
08c8469322
commit
91fa9cca99
3 changed files with 25 additions and 0 deletions
|
@ -35,6 +35,7 @@ from synapse.http.servlet import (
|
|||
parse_string_from_args,
|
||||
parse_strings_from_args,
|
||||
)
|
||||
from synapse.logging import opentracing
|
||||
from synapse.logging.context import run_in_background
|
||||
from synapse.logging.opentracing import (
|
||||
SynapseTags,
|
||||
|
@ -345,6 +346,8 @@ class BaseFederationServlet:
|
|||
)
|
||||
|
||||
with scope:
|
||||
opentracing.inject_response_headers(request.responseHeaders)
|
||||
|
||||
if origin and self.RATELIMIT:
|
||||
with ratelimiter.ratelimit(origin) as d:
|
||||
await d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue