mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-12 18:52:15 -04:00
Appease pep8
This commit is contained in:
parent
b98b4c135d
commit
128cf2daf7
9 changed files with 46 additions and 27 deletions
|
@ -57,7 +57,8 @@ class TransactionQueue(object):
|
|||
# done
|
||||
self.pending_transactions = {}
|
||||
|
||||
metrics.register_callback("pending_destinations",
|
||||
metrics.register_callback(
|
||||
"pending_destinations",
|
||||
lambda: len(self.pending_transactions),
|
||||
)
|
||||
|
||||
|
@ -67,10 +68,12 @@ class TransactionQueue(object):
|
|||
# destination -> list of tuple(edu, deferred)
|
||||
self.pending_edus_by_dest = edus = {}
|
||||
|
||||
metrics.register_callback("pending_pdus",
|
||||
metrics.register_callback(
|
||||
"pending_pdus",
|
||||
lambda: sum(map(len, pdus.values())),
|
||||
)
|
||||
metrics.register_callback("pending_edus",
|
||||
metrics.register_callback(
|
||||
"pending_edus",
|
||||
lambda: sum(map(len, edus.values())),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue