Skip to content

Commit

Permalink
Renamed start_rest_api method to start_http_api
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyuk committed May 16, 2018
1 parent c0c24ba commit 3d0ad0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dpl/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async def _start_apis(self):
enabled_apis = self._apis_config['enabled_apis']

if 'rest_api' in enabled_apis:
await self._start_rest_api()
await self._start_http_api()

if 'local_announce' in enabled_apis:
self._start_local_announce()
Expand Down Expand Up @@ -385,9 +385,9 @@ def _start_local_announce(self):
server_host=host # use REST API listening hostname
)

async def _start_rest_api(self):
async def _start_http_api(self):
"""
Starts REST API server
Starts HTTP API server with parameters defined for REST API
:return: None
"""
Expand All @@ -396,7 +396,9 @@ async def _start_rest_api(self):
rest_api_port = rest_api_config['port']

asyncio.ensure_future(
self._http_api.create_server(host=rest_api_host, port=rest_api_port)
self._http_api.create_server(
host=rest_api_host, port=rest_api_port
)
)

async def _bootstrap_integrations(self):
Expand Down

0 comments on commit 3d0ad0b

Please sign in to comment.