summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-21 17:59:39 +0000
committerErik Johnston <erik@matrix.org>2016-11-21 17:59:39 +0000
commit51e89709aa310287f07921392ba09c9cb062bd48 (patch)
tree0c618f8a6c3f5811cf92d6c139cf95f4538d1751 /synapse
parentAdd federation-sender to sytest (diff)
downloadsynapse-51e89709aa310287f07921392ba09c9cb062bd48.tar.xz
Comments
Diffstat (limited to '')
-rw-r--r--synapse/federation/send_queue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/federation/send_queue.py b/synapse/federation/send_queue.py
index 76e4c5cd80..ed2b03fad4 100644
--- a/synapse/federation/send_queue.py
+++ b/synapse/federation/send_queue.py
@@ -72,6 +72,8 @@ class FederationRemoteSendQueue(object):
 
         # EVERYTHING IS SAD. In particular, python only makes new scopes when
         # we make a new function, so we need to make a new function so the inner
+        # lambda binds to the queue rather than to the name of the queue which
+        # changes. ARGH.
         def register(name, queue):
             metrics.register_callback(
                 queue_name + "_size",