mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't measure across event stream call, as it lasts for a long time.
This commit is contained in:
parent
c486b7b41c
commit
549698b1e0
@ -128,7 +128,6 @@ class Pusher(object):
|
|||||||
try:
|
try:
|
||||||
if wait > 0:
|
if wait > 0:
|
||||||
yield synapse.util.async.sleep(wait)
|
yield synapse.util.async.sleep(wait)
|
||||||
with Measure(self.clock, "push"):
|
|
||||||
yield self.get_and_dispatch()
|
yield self.get_and_dispatch()
|
||||||
wait = 0
|
wait = 0
|
||||||
except:
|
except:
|
||||||
@ -151,6 +150,7 @@ class Pusher(object):
|
|||||||
only_keys=("room", "receipt",),
|
only_keys=("room", "receipt",),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
with Measure(self.clock, "push"):
|
||||||
# limiting to 1 may get 1 event plus 1 presence event, so
|
# limiting to 1 may get 1 event plus 1 presence event, so
|
||||||
# pick out the actual event
|
# pick out the actual event
|
||||||
single_event = None
|
single_event = None
|
||||||
|
Loading…
Reference in New Issue
Block a user