Skip to content

Commit

Permalink
Remove direct coroutine call (#557)
Browse files Browse the repository at this point in the history
Python 3.11 forbids direct calls to coroutines.
  • Loading branch information
srogatch authored Mar 11, 2023
1 parent 8c98caa commit 351abc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hivemind/dht/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def create(
await asyncio.wait(
[
asyncio.create_task(self.find_nearest_nodes([self.node_id])),
asyncio.sleep(bootstrap_timeout - get_dht_time() + start_time),
asyncio.create_task(asyncio.sleep(bootstrap_timeout - get_dht_time() + start_time)),
],
return_when=asyncio.FIRST_COMPLETED,
)
Expand Down

0 comments on commit 351abc5

Please sign in to comment.