s/HttpBackend._DEFAULT_HTTP_PORT/HttpBackend.DEFAULT_HTTP_PORT/g

This commit is contained in:
Fabio Manganiello 2023-08-19 13:30:51 +02:00
parent dd3a701a2e
commit 043f303761
Signed by: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ class HttpBackend(Backend):
"""
_DEFAULT_HTTP_PORT = 8008
DEFAULT_HTTP_PORT = 8008
"""The default listen port for the webserver."""
_STOP_TIMEOUT = 5
@ -200,7 +200,7 @@ class HttpBackend(Backend):
def __init__(
self,
port: int = _DEFAULT_HTTP_PORT,
port: int = DEFAULT_HTTP_PORT,
bind_address: str = '0.0.0.0',
resource_dirs: Optional[Mapping[str, str]] = None,
secret_key_file: Optional[str] = None,

View file

@ -14,7 +14,7 @@ def get_http_port():
from platypush.backend.http import HttpBackend
http_conf = Config.get('backend.http') or {}
return http_conf.get('port', HttpBackend._DEFAULT_HTTP_PORT)
return http_conf.get('port', HttpBackend.DEFAULT_HTTP_PORT)
def get_routes():