diff options
author | Erik Johnston <erik@matrix.org> | 2018-04-12 11:19:04 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-04-12 11:19:04 +0100 |
commit | d7bf3a68f002680ed0cd8a84c75b011371a50d6e (patch) | |
tree | 0a5780c2da77d7d1567eab679edeea6bc4e6538e /synapse | |
parent | Set all metrics at the same time (diff) | |
download | synapse-d7bf3a68f002680ed0cd8a84c75b011371a50d6e.tar.xz |
s/list/tuple
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/metrics/metric.py | 4 |
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): |