Skip to content

Commit

Permalink
fix: use asyncio.run instead of loop variable (#26094)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonhyeongseo authored Sep 12, 2022
1 parent f12531f commit 17fdc93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,4 @@ async def main():


if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
asyncio.run(main())
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,4 @@ async def main():


if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
asyncio.(main())
Original file line number Diff line number Diff line change
Expand Up @@ -482,5 +482,4 @@ async def main():


if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
asyncio.run(main())

0 comments on commit 17fdc93

Please sign in to comment.