Skip to content

Commit 9558526

Browse files
committed
Added magic number comment.
1 parent 5b97c88 commit 9558526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ def __init__(
538538
"You are instantiating the AsyncSubstrateInterface Websocket outside of an event loop. "
539539
"Verify this is intended."
540540
)
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
541544
now = 0.0
542545
self.last_received = now
543546
self.last_sent = now

0 commit comments

Comments
 (0)