Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Tag /send_join responses to detect faster joins
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jan 31, 2023
1 parent 484db60 commit 204bdb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/federation/federation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
)
from synapse.logging.opentracing import (
log_kv,
set_tag,
start_active_span_from_edu,
tag_args,
trace,
Expand Down Expand Up @@ -678,6 +679,7 @@ async def on_send_join_request(
room_id: str,
caller_supports_partial_state: bool = False,
) -> Dict[str, Any]:
set_tag("partial_state", caller_supports_partial_state)
await self._room_member_handler._join_rate_per_room_limiter.ratelimit( # type: ignore[has-type]
requester=None,
key=room_id,
Expand Down

0 comments on commit 204bdb7

Please sign in to comment.