Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove connections per replication stream metric.
Browse files Browse the repository at this point in the history
This broke in a recent PR (#7024) and is no longer useful due to all
replication clients implicitly subscribing to all streams, so let's
just remove it.
  • Loading branch information
erikjohnston committed Apr 1, 2020
1 parent 2e826cd commit 69cbb0f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions synapse/replication/tcp/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,6 @@ def __init__(self, hs):

self.streams_by_name = {stream.NAME: stream for stream in self.streams}

LaterGauge(
"synapse_replication_tcp_resource_connections_per_stream",
"",
["stream_name"],
lambda: {
(stream_name,): len(
[
conn
for conn in self.connections
if stream_name in conn.replication_streams
]
)
for stream_name in self.streams_by_name
},
)

self.federation_sender = None
if not hs.config.send_federation:
self.federation_sender = hs.get_federation_sender()
Expand Down

0 comments on commit 69cbb0f

Please sign in to comment.