Update comment for connection.close()
This commit is contained in:
parent
285bb2ed19
commit
3a0c7d06d1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user