From fe5b0a1bf6822f7520cdcbe2b00a5f4d900bbe37 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 22 Sep 2022 18:22:41 +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 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,