We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b97c88 commit 9558526Copy full SHA for 9558526
async_substrate_interface/async_substrate.py
@@ -538,6 +538,9 @@ def __init__(
538
"You are instantiating the AsyncSubstrateInterface Websocket outside of an event loop. "
539
"Verify this is intended."
540
)
541
+ # default value for in case there's no running asyncio loop
542
+ # this really doesn't matter in most cases, as it's only used for comparison on the first call to
543
+ # see how long it's been since the last call
544
now = 0.0
545
self.last_received = now
546
self.last_sent = now
0 commit comments