Skip to content

Commit f6b326e

Browse files
committed
fix tornado dev server
1 parent b0a9b06 commit f6b326e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/idom/backend/tornado.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from tornado.httpserver import HTTPServer
1212
from tornado.httputil import HTTPServerRequest
13+
from tornado.ioloop import IOLoop
1314
from tornado.log import enable_pretty_logging
1415
from tornado.platform.asyncio import AsyncIOMainLoop
1516
from tornado.web import Application, RequestHandler, StaticFileHandler
@@ -67,8 +68,7 @@ async def serve_development_app(
6768
) -> None:
6869
enable_pretty_logging()
6970

70-
# setup up tornado to use asyncio
71-
AsyncIOMainLoop().install()
71+
AsyncIOMainLoop.current().install()
7272

7373
server = HTTPServer(app)
7474
server.listen(port, host)

0 commit comments

Comments
 (0)