Skip to content

Commit 97d78d4

Browse files
committed
Fixes potential issues with starting a new loop
1 parent d88d2b7 commit 97d78d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def __init__(
539539
"You are instantiating the AsyncSubstrateInterface Websocket outside of an event loop. "
540540
"Verify this is intended."
541541
)
542-
now = asyncio.new_event_loop().time()
542+
now = 0.0
543543
self.last_received = now
544544
self.last_sent = now
545545

0 commit comments

Comments
 (0)