Skip to content

Commit

Permalink
Remove connections per replication stream metric. (matrix-org#7195)
Browse files Browse the repository at this point in the history
This broke in a recent PR (matrix-org#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 authored and phil-flex committed Jun 16, 2020
1 parent 4ff37da commit 3cd0970
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions changelog.d/7195.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move catchup of replication streams logic to worker.
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 3cd0970

Please sign in to comment.