Commit ec4b40bb authored by Jake Howard's avatar Jake Howard
Browse files

Dont need so many workers

parent b2818204
......@@ -2,7 +2,6 @@ from sanic import Sanic
from sanic_useragent import SanicUserAgent
from lantern.args import parse_args
from lantern.route import build_main_route
import os
app = Sanic(__name__)
......@@ -10,8 +9,7 @@ SanicUserAgent.init_app(app)
def main():
args = parse_args()
workers = os.cpu_count() or 1
main_route = build_main_route(args)
app.add_route(main_route, "/<path>")
app.add_route(main_route, "/")"", port=args.port, workers=workers)"", port=args.port)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment