Update libp2p/network/swarm.py

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
Kevin Mai-Husan Chia 2019-08-31 22:32:32 +08:00 committed by GitHub
parent cec2aea928
commit 1e59438f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ class Swarm(INetwork):
upgrader: TransportUpgrader upgrader: TransportUpgrader
transport: ITransport transport: ITransport
router: IPeerRouting router: IPeerRouting
# TODO: Connections an `peer_id` are 1-1 mapping in our implementation, # TODO: Connection and `peer_id` are 1-1 mapping in our implementation,
# whereas in Go one `peer_id` may point to multiple connections. # whereas in Go one `peer_id` may point to multiple connections.
connections: Dict[ID, IMuxedConn] connections: Dict[ID, IMuxedConn]
listeners: Dict[str, IListener] listeners: Dict[str, IListener]