summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-14 18:21:42 +0100
committerGitHub <noreply@github.com>2019-06-14 18:21:42 +0100
commit9ca4ae71314e177210f858819c76ed0fa2f40d15 (patch)
treee889b4147b41f2e7ec453e4df748b1feed711469 /synapse/storage
parentMerge pull request #5465 from matrix-org/babolivier/fix_deactivation_bg_job (diff)
parentNewsfile (diff)
downloadsynapse-9ca4ae71314e177210f858819c76ed0fa2f40d15.tar.xz
Merge pull request #5461 from matrix-org/erikj/histograms_are_cumalitive
Prometheus histograms are cumalative
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 1578403f79..f631fb1733 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -228,7 +228,8 @@ class EventsStore(
         self._state_resolution_handler = hs.get_state_resolution_handler()
 
         # Collect metrics on the number of forward extremities that exist.
-        self._current_forward_extremities_amount = {}
+        # Counter of number of extremities to count
+        self._current_forward_extremities_amount = c_counter()
 
         BucketCollector(
             "synapse_forward_extremities",