forked from p15670423/monkey
island: Remove unused mongo_url from BootloaderHttpServer constructor
This commit is contained in:
parent
4f97be59c3
commit
ac407bf48a
|
@ -92,7 +92,7 @@ def _start_island_server(should_setup_only, config_options: IslandConfigOptions)
|
|||
logger.warning("Setup only flag passed. Exiting.")
|
||||
return
|
||||
|
||||
bootloader_server_thread = _start_bootloader_server(MONGO_URL)
|
||||
bootloader_server_thread = _start_bootloader_server()
|
||||
|
||||
if env_singleton.env.is_debug():
|
||||
app.run(host="0.0.0.0", debug=True, ssl_context=(crt_path, key_path))
|
||||
|
@ -109,10 +109,8 @@ def _start_island_server(should_setup_only, config_options: IslandConfigOptions)
|
|||
bootloader_server_thread.join()
|
||||
|
||||
|
||||
def _start_bootloader_server(mongo_url) -> Thread:
|
||||
bootloader_server_thread = Thread(
|
||||
target=BootloaderHttpServer(mongo_url).serve_forever, daemon=True
|
||||
)
|
||||
def _start_bootloader_server() -> Thread:
|
||||
bootloader_server_thread = Thread(target=BootloaderHttpServer().serve_forever, daemon=True)
|
||||
|
||||
bootloader_server_thread.start()
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class BootloaderHttpServer(ThreadingMixIn, HTTPServer):
|
||||
def __init__(self, mongo_url):
|
||||
def __init__(self):
|
||||
server_address = ("", 5001)
|
||||
super().__init__(server_address, BootloaderHTTPRequestHandler)
|
||||
|
||||
|
|
Loading…
Reference in New Issue