mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Remove connections per replication stream metric. (#7195)
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.
This commit is contained in:
parent
2e826cd80c
commit
dfa0782254
1
changelog.d/7195.misc
Normal file
1
changelog.d/7195.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Move catchup of replication streams logic to worker.
|
@ -99,22 +99,6 @@ class ReplicationStreamer(object):
|
|||||||
|
|
||||||
self.streams_by_name = {stream.NAME: stream for stream in self.streams}
|
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
|
self.federation_sender = None
|
||||||
if not hs.config.send_federation:
|
if not hs.config.send_federation:
|
||||||
self.federation_sender = hs.get_federation_sender()
|
self.federation_sender = hs.get_federation_sender()
|
||||||
|
Loading…
Reference in New Issue
Block a user