From 97bcbc2971601bfaa64055dbe30ff58cb7c0f3db Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 11 Apr 2017 09:34:07 +0100 Subject: [PATCH] no need for int --- lantern/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)