Skip to content

Commit 55a8457

Browse files
committed
TODOs
1 parent e741471 commit 55a8457

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
@@ -2289,6 +2289,8 @@ async def _make_rpc_request(
22892289
force_legacy_decode: bool = False,
22902290
) -> RequestManager.RequestResults:
22912291
request_manager = RequestManager(payloads)
2292+
# TODO maybe instead of the current logic, I should assign the futs during send() and then just
2293+
# TODO use that to determine when it's completed. But how would this work with subscriptions?
22922294

22932295
subscription_added = False
22942296
should_retry = False
@@ -2341,6 +2343,7 @@ async def _make_rpc_request(
23412343

23422344
if request_manager.is_complete:
23432345
break
2346+
# TODO I sometimes get timeouts immediately. Why?
23442347
if should_retry or (
23452348
(current_time := await ws.loop_time()) - ws.last_received
23462349
>= self.retry_timeout

0 commit comments

Comments
 (0)