mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-01 23:45:08 -05:00
Merge pull request #2975 from matrix-org/rav/measure_persist_events
Add Measure block for persist_events
This commit is contained in:
commit
299fd740c7
@ -283,6 +283,7 @@ class EventsStore(EventsWorkerStore):
|
|||||||
def _maybe_start_persisting(self, room_id):
|
def _maybe_start_persisting(self, room_id):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def persisting_queue(item):
|
def persisting_queue(item):
|
||||||
|
with Measure(self._clock, "persist_events"):
|
||||||
yield self._persist_events(
|
yield self._persist_events(
|
||||||
item.events_and_contexts,
|
item.events_and_contexts,
|
||||||
backfilled=item.backfilled,
|
backfilled=item.backfilled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user