no need for int
This commit is contained in:
parent
77bbcdd210
commit
97bcbc2971
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue