Skip to content

Commit

Permalink
fix tornado dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Jul 13, 2022
1 parent b0a9b06 commit f6b326e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/idom/backend/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from tornado.httpserver import HTTPServer
from tornado.httputil import HTTPServerRequest
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from tornado.platform.asyncio import AsyncIOMainLoop
from tornado.web import Application, RequestHandler, StaticFileHandler
Expand Down Expand Up @@ -67,8 +68,7 @@ async def serve_development_app(
) -> None:
enable_pretty_logging()

# setup up tornado to use asyncio
AsyncIOMainLoop().install()
AsyncIOMainLoop.current().install()

server = HTTPServer(app)
server.listen(port, host)
Expand Down

0 comments on commit f6b326e

Please sign in to comment.