diff --git a/synapse/handlers/event_auth.py b/synapse/handlers/event_auth.py index b123b8cb5a05..8249ca1ed26c 100644 --- a/synapse/handlers/event_auth.py +++ b/synapse/handlers/event_auth.py @@ -31,7 +31,6 @@ from synapse.events.builder import EventBuilder from synapse.events.snapshot import EventContext from synapse.types import StateMap, get_domain_from_id -from synapse.util.metrics import Measure if TYPE_CHECKING: from synapse.server import HomeServer @@ -157,8 +156,7 @@ async def get_user_which_could_invite( ) async def is_host_in_room(self, room_id: str, host: str) -> bool: - with Measure(self._clock, "check_host_in_room"): - return await self._store.is_host_joined(room_id, host) + return await self._store.is_host_joined(room_id, host) async def assert_host_in_room( self, room_id: str, host: str, allow_partial_state_rooms: bool = False