mirror of
https://github.com/django/daphne.git
synced 2025-03-12 19:35:47 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8d87442ed1
commit
29318b7454
|
@ -126,7 +126,9 @@ class DaphneProcess(multiprocessing.Process):
|
||||||
port it ends up listening on back to the parent process.
|
port it ends up listening on back to the parent process.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, host, get_application, kwargs=None, setup=None, teardown=None, port=None):
|
def __init__(
|
||||||
|
self, host, get_application, kwargs=None, setup=None, teardown=None, port=None
|
||||||
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.host = host
|
self.host = host
|
||||||
self.get_application = get_application
|
self.get_application = get_application
|
||||||
|
@ -153,7 +155,9 @@ class DaphneProcess(multiprocessing.Process):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Create the server class
|
# Create the server class
|
||||||
endpoints = build_endpoint_description_strings(host=self.host, port=self.port.value)
|
endpoints = build_endpoint_description_strings(
|
||||||
|
host=self.host, port=self.port.value
|
||||||
|
)
|
||||||
self.server = Server(
|
self.server = Server(
|
||||||
application=application,
|
application=application,
|
||||||
endpoints=endpoints,
|
endpoints=endpoints,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user