diff --git a/lantern/main.py b/lantern/main.py index 5b50b6d..731b936 100644 --- a/lantern/main.py +++ b/lantern/main.py @@ -8,7 +8,7 @@ SanicUserAgent.init_app(app) def main(): - workers = int(os.cpu_count()) or 1 + workers = os.cpu_count() or 1 app.add_route(main_route, "/") app.add_route(main_route, "/") app.run(host="0.0.0.0", port=8000, workers=workers)