mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 15:10:54 +00:00
committed by
GitHub
parent
1e59438f25
commit
9e8a6bdf29
@ -26,7 +26,7 @@ async def hosts(num_hosts, is_host_secure):
|
|||||||
yield _hosts
|
yield _hosts
|
||||||
finally:
|
finally:
|
||||||
# TODO: It's possible that `close` raises exceptions currently,
|
# TODO: It's possible that `close` raises exceptions currently,
|
||||||
# due to the connection reset things. Though we are not so careful about that when
|
# due to the connection reset things. Though we don't care much about that when
|
||||||
# cleaning up the tasks, it is probably better to handle the exceptions properly.
|
# cleaning up the tasks, it is probably better to handle the exceptions properly.
|
||||||
await asyncio.gather(
|
await asyncio.gather(
|
||||||
*[_host.close() for _host in _hosts], return_exceptions=True
|
*[_host.close() for _host in _hosts], return_exceptions=True
|
||||||
|
|||||||
Reference in New Issue
Block a user