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

Commit d613f09

Browse files
committed
Remove redundant Measure block
1 parent 41fcf5c commit d613f09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

synapse/handlers/event_auth.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from synapse.events.builder import EventBuilder
3232
from synapse.events.snapshot import EventContext
3333
from synapse.types import StateMap, get_domain_from_id
34-
from synapse.util.metrics import Measure
3534

3635
if TYPE_CHECKING:
3736
from synapse.server import HomeServer
@@ -157,8 +156,7 @@ async def get_user_which_could_invite(
157156
)
158157

159158
async def is_host_in_room(self, room_id: str, host: str) -> bool:
160-
with Measure(self._clock, "check_host_in_room"):
161-
return await self._store.is_host_joined(room_id, host)
159+
return await self._store.is_host_joined(room_id, host)
162160

163161
async def assert_host_in_room(
164162
self, room_id: str, host: str, allow_partial_state_rooms: bool = False

0 commit comments

Comments
 (0)