summary refs log tree commit diff
path: root/synapse/replication/tcp
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-04-05 13:43:39 +0100
committerErik Johnston <erik@matrix.org>2017-04-05 13:43:39 +0100
commit1ca0e78ca10ccd0fa705160b7138f0ba2370158f (patch)
tree4fd05d7d4555c4bbdbc03ad820e57c09e2cdaa64 /synapse/replication/tcp
parentFixup some metrics for tcp repl (diff)
downloadsynapse-1ca0e78ca10ccd0fa705160b7138f0ba2370158f.tar.xz
Fix typo
Diffstat (limited to 'synapse/replication/tcp')
-rw-r--r--synapse/replication/tcp/protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py
index 4f44836c2f..95ea256e77 100644
--- a/synapse/replication/tcp/protocol.py
+++ b/synapse/replication/tcp/protocol.py
@@ -336,10 +336,10 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
 
         for cmd in COMMAND_MAP:
             outbound_commands_counter.unregister_counter(
-                cmd.NAME, self.name, self.conn_id
+                cmd, self.name, self.conn_id
             )
             inbound_commands_counter.unregister_counter(
-                cmd.NAME, self.name, self.conn_id
+                cmd, self.name, self.conn_id
             )
 
         if self.transport: