22.3 Internal version bumps (#2419)

This commit is contained in:
Adam Hopkins
2022-03-31 14:30:30 +03:00
committed by GitHub
parent 874718db94
commit 00218aa9f2
6 changed files with 12 additions and 11 deletions

View File

@@ -11,7 +11,6 @@ from asyncio import (
CancelledError,
Task,
ensure_future,
get_event_loop_policy,
get_running_loop,
wait_for,
)
@@ -253,7 +252,7 @@ class Sanic(BaseSanic, RunnerMixin, metaclass=TouchUpMeta):
"Loop can only be retrieved after the app has started "
"running. Not supported with `create_server` function"
)
return get_event_loop_policy().get_event_loop()
return get_running_loop()
# -------------------------------------------------------------------- #
# Registration