mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
Measure PresenceEventSource.get_new_events
This commit is contained in:
parent
9e696bd6a3
commit
56a94ccd9e
1 changed files with 35 additions and 34 deletions
|
@ -835,6 +835,7 @@ class PresenceEventSource(object):
|
||||||
# We don't try and limit the presence updates by the current token, as
|
# We don't try and limit the presence updates by the current token, as
|
||||||
# sending down the rare duplicate is not a concern.
|
# sending down the rare duplicate is not a concern.
|
||||||
|
|
||||||
|
with Measure(self.clock, "Presence.get_new_events"):
|
||||||
user_id = user.to_string()
|
user_id = user.to_string()
|
||||||
if from_key is not None:
|
if from_key is not None:
|
||||||
from_key = int(from_key)
|
from_key = int(from_key)
|
||||||
|
|
Loading…
Reference in a new issue