From c248a979d14fa38d1edcea1c3f2272b8f8ffccbe Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 22 Sep 2022 18:23:04 +0100 Subject: [PATCH] Remove redundant Measure block --- synapse/handlers/event_auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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