diff --git a/synapse/handlers/event_auth.py b/synapse/handlers/event_auth.py index b123b8cb5a05..4a80f5d9f3ab 100644 --- a/synapse/handlers/event_auth.py +++ b/synapse/handlers/event_auth.py @@ -157,8 +157,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