Archived
1
Fork 0

no need for int

This commit is contained in:
Jake Howard 2017-04-11 09:34:07 +01:00
parent 77bbcdd210
commit 97bcbc2971

View file

@ -8,7 +8,7 @@ SanicUserAgent.init_app(app)
def main(): def main():
workers = int(os.cpu_count()) or 1 workers = os.cpu_count() or 1
app.add_route(main_route, "/<path>") app.add_route(main_route, "/<path>")
app.add_route(main_route, "/") app.add_route(main_route, "/")
app.run(host="0.0.0.0", port=8000, workers=workers) app.run(host="0.0.0.0", port=8000, workers=workers)