diff --git a/synapse/handlers/event_auth.py b/synapse/handlers/event_auth.py index c3ddc5d18253..b9053d1275ba 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 check_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 check_restricted_join_rules( self,