From f94135cadd4b1a7447fb64db80de63ecaeca6e63 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 20 Jan 2020 14:18:00 -0500 Subject: [PATCH] make pycharm happy about long lines --- lbry/extras/daemon/daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 1cf6c9774..6befb5b9c 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -475,9 +475,9 @@ class Daemon(metaclass=JSONRPCServerType): if self.conf.prometheus_port: try: - metrics_site = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5) - await metrics_site.start() - log.info('metrics server listening on TCP %s:%i', *metrics_site._server.sockets[0].getsockname()[:2]) + metrics = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5) + await metrics.start() + log.info('metrics server listening on TCP %s:%i', *metrics._server.sockets[0].getsockname()[:2]) except OSError as e: log.error('metrics server failed to bind TCP :%i', self.conf.prometheus_port) await self.analytics_manager.send_server_startup_error(str(e))