mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-05 05:04:59 -04:00
Add measure on check_host_in_room
This commit is contained in:
parent
3f11953fcb
commit
25414b44a2
1 changed files with 12 additions and 11 deletions
|
@ -278,6 +278,7 @@ class Auth(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def check_host_in_room(self, room_id, host):
|
def check_host_in_room(self, room_id, host):
|
||||||
|
with Measure(self.clock, "check_host_in_room"):
|
||||||
curr_state_id = yield self.state.get_current_state_ids(room_id)
|
curr_state_id = yield self.state.get_current_state_ids(room_id)
|
||||||
|
|
||||||
for (etype, state_key), event_id in curr_state_id.items():
|
for (etype, state_key), event_id in curr_state_id.items():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue