summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-04-12 11:19:04 +0100
committerErik Johnston <erik@matrix.org>2018-04-12 11:19:04 +0100
commitd7bf3a68f002680ed0cd8a84c75b011371a50d6e (patch)
tree0a5780c2da77d7d1567eab679edeea6bc4e6538e /synapse
parentSet all metrics at the same time (diff)
downloadsynapse-d7bf3a68f002680ed0cd8a84c75b011371a50d6e.tar.xz
s/list/tuple
Diffstat (limited to '')
-rw-r--r--synapse/metrics/metric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/metrics/metric.py b/synapse/metrics/metric.py
index 9ebf2d6fdb..89bd47c3f7 100644
--- a/synapse/metrics/metric.py
+++ b/synapse/metrics/metric.py
@@ -115,7 +115,7 @@ class CounterMetric(BaseMetric):
         # dict[list[str]]: value for each set of label values. the keys are the
         # label values, in the same order as the labels in self.labels.
         #
-        # (if the metric is a scalar, the (single) key is the empty list).
+        # (if the metric is a scalar, the (single) key is the empty tuple).
         self.counts = {}
 
         # Scalar metrics are never empty
@@ -155,7 +155,7 @@ class GaugeMetric(BaseMetric):
         # dict[list[str]]: value for each set of label values. the keys are the
         # label values, in the same order as the labels in self.labels.
         #
-        # (if the metric is a scalar, the (single) key is the empty list).
+        # (if the metric is a scalar, the (single) key is the empty tuple).
         self.guages = {}
 
     def set(self, v, *values):