mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Rename Metrics' "keys" to "labels"
This commit is contained in:
parent
399689dcc7
commit
f9478e475b
7 changed files with 26 additions and 26 deletions
|
@ -71,11 +71,11 @@ class TransactionQueue(object):
|
|||
|
||||
metrics.register_callback("pending_pdus",
|
||||
lambda: {(dest,): len(pdus[dest]) for dest in pdus.keys()},
|
||||
keys=["dest"],
|
||||
labels=["dest"],
|
||||
)
|
||||
metrics.register_callback("pending_edus",
|
||||
lambda: {(dest,): len(edus[dest]) for dest in edus.keys()},
|
||||
keys=["dest"],
|
||||
labels=["dest"],
|
||||
)
|
||||
|
||||
def can_send_to(self, destination):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue