Skip to content

Commit 6eb2d32

Browse files
committed
async fixes
1 parent dc157d1 commit 6eb2d32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sasquatchbackpack/sources/usgs/commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ def usgs_earthquake_data(
199199

200200
click.echo("Post mode enabled: Sending data...")
201201
click.echo(f"Querying redis at {backpack_dispatcher.redis.address}")
202-
loop = asyncio.new_event_loop()
203-
loop.run_until_complete(backpack_dispatcher.direct_connect())
202+
asyncio.run(backpack_dispatcher.direct_connect())
204203

205204
click.echo("complete")
206205

0 commit comments

Comments
 (0)