mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 12:00:21 +00: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
|
||||
# sending down the rare duplicate is not a concern.
|
||||
|
||||
with Measure(self.clock, "Presence.get_new_events"):
|
||||
user_id = user.to_string()
|
||||
if from_key is not None:
|
||||
from_key = int(from_key)
|
||||
|
|
Loading…
Reference in a new issue