Skip to content

Commit

Permalink
Revert "fix: RuntimeWarning: coroutine 'Client.close_async' was never…
Browse files Browse the repository at this point in the history
… awaited (#127)" (#133)

This reverts commit d0ff6bd.
  • Loading branch information
mgmacias95 authored Jan 30, 2023
1 parent a2bcce9 commit 015cd54
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ def make_sync(future):
# Generate an event loop if there isn't any.
event_loop = asyncio.new_event_loop()
asyncio.set_event_loop(event_loop)
if event_loop.is_running():
return event_loop.create_task(future)
else:
return event_loop.run_until_complete(future)
return event_loop.run_until_complete(future)

0 comments on commit 015cd54

Please sign in to comment.