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 d613f09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions synapse/handlers/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from synapse.events.builder import EventBuilder
from synapse.events.snapshot import EventContext
from synapse.types import StateMap, get_domain_from_id
from synapse.util.metrics import Measure

if TYPE_CHECKING:
from synapse.server import HomeServer
Expand Down Expand Up @@ -157,8 +156,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 d613f09

Please sign in to comment.