mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-17 00:09:12 -04:00
Merge remote-tracking branch 'origin/develop' into 3218-official-prom
This commit is contained in:
commit
754826a830
47 changed files with 686 additions and 197 deletions
|
@ -27,6 +27,7 @@ from synapse.metrics import LaterGauge
|
|||
import logging
|
||||
|
||||
from prometheus_client import Counter
|
||||
from six import itervalues
|
||||
|
||||
stream_updates_counter = Counter("synapse_replication_tcp_resource_stream_updates",
|
||||
"", ["stream_name"])
|
||||
|
@ -81,7 +82,7 @@ class ReplicationStreamer(object):
|
|||
# We only support federation stream if federation sending hase been
|
||||
# disabled on the master.
|
||||
self.streams = [
|
||||
stream(hs) for stream in STREAMS_MAP.itervalues()
|
||||
stream(hs) for stream in itervalues(STREAMS_MAP)
|
||||
if stream != FederationStream or not hs.config.send_federation
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue