Skip to content

Commit

Permalink
fixed indent issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sowmyasris committed Sep 2, 2024
1 parent 317904c commit 7847b70
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fedn/network/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,14 +629,14 @@ def list_combiners_data():


def start_server_api():
config = get_controller_config()
port = config["port"]
host = "0.0.0.0"
debug = config["debug"]
if debug:
app.run(debug=debug, port=port, host=host)
else:
workers=os.cpu_count()
gunicorn_app.run_gunicorn(app, host, port, workers)
config = get_controller_config()
port = config["port"]
host = "0.0.0.0"
debug = config["debug"]
if debug:
app.run(debug=debug, port=port, host=host)
else:
workers=os.cpu_count()
gunicorn_app.run_gunicorn(app, host, port, workers)
if __name__ == "__main__":
start_server_api()

0 comments on commit 7847b70

Please sign in to comment.