Skip to content

Commit dde3005

Browse files
committed
coroutine -> fn
1 parent 087f467 commit dde3005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def __init__(
392392
self.loading_complete = False
393393
self._buffer = iter(self.records) # Initialize the buffer with initial records
394394

395-
async def retrieve_next_page(self, start_key) -> list:
395+
def retrieve_next_page(self, start_key) -> list:
396396
result = self.substrate.query_map(
397397
module=self.module,
398398
storage_function=self.storage_function,
@@ -1322,7 +1322,7 @@ def subscribe_block_headers(
13221322
Example:
13231323
13241324
```
1325-
async def subscription_handler(obj, update_nr, subscription_id):
1325+
def subscription_handler(obj, update_nr, subscription_id):
13261326
13271327
print(f"New block #{obj['header']['number']} produced by {obj['header']['author']}")
13281328

0 commit comments

Comments
 (0)