diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-07-18 23:57:15 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-18 23:57:15 +1000 |
commit | 7ad1d763566eb34bd32234811aa9901d8f3668aa (patch) | |
tree | 2349489f45b024f7b5430f6405687c1c36bedc33 /synapse/app/_base.py | |
parent | Remove the ability to query relations when the original event was redacted. (... (diff) | |
download | synapse-7ad1d763566eb34bd32234811aa9901d8f3668aa.tar.xz |
Support Prometheus_client 0.4.0+ (#5636)
Diffstat (limited to 'synapse/app/_base.py')
-rw-r--r-- | synapse/app/_base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 807f320b46..540dbd9236 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -149,8 +149,7 @@ def listen_metrics(bind_addresses, port): """ Start Prometheus metrics server. """ - from synapse.metrics import RegistryProxy - from prometheus_client import start_http_server + from synapse.metrics import RegistryProxy, start_http_server for host in bind_addresses: logger.info("Starting metrics listener on %s:%d", host, port) |