summary refs log tree commit diff
path: root/synapse/replication/tcp/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/replication/tcp/protocol.py')
-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: