mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
federation/send_queue.py: fix usage of LaterGauge
Fixes a startup crash due to commit df9f72d9e5
"replacing portions".
This commit is contained in:
parent
a9e97dcd65
commit
7d9d75e4e8
@ -75,7 +75,7 @@ class FederationRemoteSendQueue(object):
|
|||||||
# changes. ARGH.
|
# changes. ARGH.
|
||||||
def register(name, queue):
|
def register(name, queue):
|
||||||
LaterGauge("synapse_federation_send_queue_%s_size" % (queue_name,),
|
LaterGauge("synapse_federation_send_queue_%s_size" % (queue_name,),
|
||||||
"", lambda: len(queue))
|
"", [], lambda: len(queue))
|
||||||
|
|
||||||
for queue_name in [
|
for queue_name in [
|
||||||
"presence_map", "presence_changed", "keyed_edu", "keyed_edu_changed",
|
"presence_map", "presence_changed", "keyed_edu", "keyed_edu_changed",
|
||||||
|
Loading…
Reference in New Issue
Block a user