mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Update comment for connection.close()
This commit is contained in:
@ -248,8 +248,8 @@ class Swarm(INetwork):
|
|||||||
# TODO: Should be changed to close multisple connections,
|
# TODO: Should be changed to close multisple connections,
|
||||||
# if we have several connections per peer in the future.
|
# if we have several connections per peer in the future.
|
||||||
connection = self.connections[peer_id]
|
connection = self.connections[peer_id]
|
||||||
# NOTE: `connection.close` performs `del self.connections[peer_id]` for us,
|
# NOTE: `connection.close` will perform `del self.connections[peer_id]`
|
||||||
# so we don't need to remove the entry here.
|
# and `notify_disconnected` for us.
|
||||||
await connection.close()
|
await connection.close()
|
||||||
|
|
||||||
logger.debug("successfully close the connection to peer %s", peer_id)
|
logger.debug("successfully close the connection to peer %s", peer_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user