Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove redundant Measure block
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Sep 22, 2022
1 parent 41fcf5c commit c248a97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapse/handlers/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c248a97

Please sign in to comment.